mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
commands: Remove logic that hides 'Building Sites' message after build completes
Append newline to the message instead. Fixes #7579
This commit is contained in:
parent
ad01aea3f4
commit
d39636a5fc
1 changed files with 1 additions and 8 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue