From 12a9a01644fdf55a7f1b0b8cfcb35113703177ca Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 3 Jan 2017 15:11:37 +0100 Subject: [PATCH] Fix: Do not prefix oneshot output with \r --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index cd87a7a..5b3f769 100644 --- a/main.go +++ b/main.go @@ -86,10 +86,11 @@ func main() { log.Fatalf("An error ocurred while generating the code: %s", err) } - fmt.Printf("\r%s", output) - if cfg.OneShot { + fmt.Printf("%s", output) break + } else { + fmt.Printf("\r%s", output) } }