mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02: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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user