commands: Remove logic that hides 'Building Sites' message after build completes

Append newline to the message instead.

Fixes #7579
This commit is contained in:
Jeff Warner 2020-08-22 00:56:43 -07:00 committed by GitHub
parent ad01aea3f4
commit d39636a5fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -278,13 +278,6 @@ func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targ
func isTerminal() bool { func isTerminal() bool {
return terminal.IsTerminal(os.Stdout) return terminal.IsTerminal(os.Stdout)
}
func ifTerminal(s string) string {
if !isTerminal() {
return ""
}
return s
} }
func (c *commandeer) fullBuild() error { func (c *commandeer) fullBuild() error {
@ -295,7 +288,7 @@ func (c *commandeer) fullBuild() error {
) )
if !c.h.quiet { if !c.h.quiet {
fmt.Print(ifTerminal(hideCursor) + "Building sites … ") fmt.Println("Start building sites … ")
if isTerminal() { if isTerminal() {
defer func() { defer func() {
fmt.Print(showCursor + clearLine) fmt.Print(showCursor + clearLine)