From 2fa4f0ece76f02b82f577f615a57e425ee921293 Mon Sep 17 00:00:00 2001 From: Craig Peterson Date: Sun, 12 Mar 2017 16:02:30 -0700 Subject: [PATCH] Printing correction count for each provider as we go. --- main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8310dec21..59e7c9ef2 100644 --- a/main.go +++ b/main.go @@ -173,8 +173,9 @@ func main() { if !shouldrun { statusLbl = "(skipping)" } - fmt.Printf("----- DNS Provider: %s%s\n", prov, statusLbl) + fmt.Printf("----- DNS Provider: %s... %s", prov, statusLbl) if !shouldrun { + fmt.Println() continue } dsp, ok := dsps[prov] @@ -183,11 +184,17 @@ func main() { } corrections, err := dsp.GetDomainCorrections(dc) if err != nil { + fmt.Println("ERROR") anyErrors = true fmt.Printf("Error getting corrections: %s\n", err) continue DomainLoop } totalCorrections += len(corrections) + plural := "s" + if len(corrections) == 1 { + plural = "" + } + fmt.Printf("%d correction%s\n", len(corrections), plural) anyErrors = printOrRunCorrections(corrections, command) || anyErrors } if run := shouldRunProvider(domain.Registrar, domain); !run {