From e6a67ca5aaf738b0360ca3af00ed07704bb448f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Tue, 18 Sep 2018 09:36:26 +0200 Subject: [PATCH] Improve output of CLI --- internal/log/handlers/cli/cli.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/log/handlers/cli/cli.go b/internal/log/handlers/cli/cli.go index a167ad6..993a4af 100644 --- a/internal/log/handlers/cli/cli.go +++ b/internal/log/handlers/cli/cli.go @@ -106,9 +106,9 @@ func (h *Handler) TypedLog(t string, e *log.Entry) error { switch t { case "progress": perc := e.Fields.Get("percentage").(float64) * 100 - s := fmt.Sprintf(" %s\n %-25s", + s := fmt.Sprintf(" %s %-25s", bold.Sprintf("%.2f%%", perc), - bold.Sprint(e.Message)) + e.Message) fmt.Fprint(h.Writer, s) fmt.Fprintln(h.Writer) return nil