mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
077b0fa71f
commit
7cd69aaae8
1 changed files with 6 additions and 0 deletions
6
main.go
6
main.go
|
@ -17,9 +17,15 @@ import (
|
|||
"runtime"
|
||||
|
||||
"github.com/spf13/hugo/commands"
|
||||
jww "github.com/spf13/jwalterweatherman"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
commands.Execute()
|
||||
|
||||
if jww.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) > 0 {
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue