Display version when building site (#8533)

Closes #8531
This commit is contained in:
Joe Mooring 2021-05-14 07:45:13 -07:00 committed by GitHub
parent 2c7f5b62f6
commit 76c95f55a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,7 @@ import (
"github.com/pkg/errors"
"github.com/gohugoio/hugo/common/herrors"
"github.com/gohugoio/hugo/common/hugo"
"github.com/gohugoio/hugo/common/loggers"
"github.com/gohugoio/hugo/common/terminal"
@ -283,6 +284,7 @@ func (c *commandeer) fullBuild() error {
if !c.h.quiet {
fmt.Println("Start building sites … ")
fmt.Println(hugo.BuildVersionString())
if isTerminal() {
defer func() {
fmt.Print(showCursor + clearLine)