INNER CODE UNIT · Go

clean

eko/monday · cmd/clean.go:34

func clean(dryRun bool) error {
	verb := "Removed"
	if dryRun {
		verb = "Would remove"
	}

	removed, failed := 0, 0

	// Hosts file entries
	if hosts, hostnames, err := configuredHosts(); err != nil {
		fmt.Printf("⚠️   %v\n", err)
	} else {
		for _, hostname := range hostnames {
			if !hosts.HasHost(hostname) {
				continue
			}

			if !dryRun {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…