From d7bb346dccbca7d4b156d73cab5c39367057c7f7 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 23 Feb 2020 14:24:31 +0100 Subject: prompt: minor aspect fix --- input/prompt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/input/prompt.go b/input/prompt.go index bd3fe4f0..12aa7b92 100644 --- a/input/prompt.go +++ b/input/prompt.go @@ -205,6 +205,8 @@ func PromptCredential(target, name string, credentials []auth.Credential, choice sort.Sort(auth.ById(credentials)) for { + _, _ = fmt.Fprintln(os.Stderr) + offset := 0 for i, choice := range choices { _, _ = fmt.Fprintf(os.Stderr, "[%d]: %s\n", i+1, choice) @@ -213,7 +215,7 @@ func PromptCredential(target, name string, credentials []auth.Credential, choice if len(credentials) > 0 { _, _ = fmt.Fprintln(os.Stderr) - _, _ = fmt.Fprintf(os.Stderr, "Existing %s for %s:", name, target) + _, _ = fmt.Fprintf(os.Stderr, "Existing %s for %s:\n", name, target) for i, cred := range credentials { meta := make([]string, 0, len(cred.Metadata())) -- cgit