projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad01aea
)
commands: Remove logic that hides 'Building Sites' message after build completes
author
Jeff Warner
<jwarner112@users.noreply.github.com>
Sat, 22 Aug 2020 07:56:43 +0000
(
00:56
-0700)
committer
GitHub
<noreply@github.com>
Sat, 22 Aug 2020 07:56:43 +0000
(09:56 +0200)
Append newline to the message instead.
Fixes #7579
commands/hugo.go
patch
|
blob
|
history
diff --git
a/commands/hugo.go
b/commands/hugo.go
index 5442c32d708a447a8f745af11cb34a9e8166e747..de4e3fbb2537514d0f5b7a7a60643c0092819cfb 100644
(file)
--- 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) + "B
uilding sites … ")
+ fmt.Print
ln("Start b
uilding sites … ")
if isTerminal() {
defer func() {
fmt.Print(showCursor + clearLine)