From: Jeff Warner Date: Sat, 22 Aug 2020 07:56:43 +0000 (-0700) Subject: commands: Remove logic that hides 'Building Sites' message after build completes X-Git-Tag: v0.75.0~61 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d39636a5fc6bb82b3e0bd013858c7d116faa0c6b;p=brevno-suite%2Fhugo commands: Remove logic that hides 'Building Sites' message after build completes Append newline to the message instead. Fixes #7579 --- diff --git a/commands/hugo.go b/commands/hugo.go index 5442c32d..de4e3fbb 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -278,13 +278,6 @@ func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targ func isTerminal() bool { return terminal.IsTerminal(os.Stdout) - -} -func ifTerminal(s string) string { - if !isTerminal() { - return "" - } - return s } func (c *commandeer) fullBuild() error { @@ -295,7 +288,7 @@ func (c *commandeer) fullBuild() error { ) if !c.h.quiet { - fmt.Print(ifTerminal(hideCursor) + "Building sites … ") + fmt.Println("Start building sites … ") if isTerminal() { defer func() { fmt.Print(showCursor + clearLine)