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
1 changed files with 1 additions and 8 deletions

View File

@ -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)