mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
1 parent
077b0fa71f
commit
7cd69aaae8
1 file changed
+6
@@ -17,9 +17,15 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/spf13/hugo/commands"
|
"github.com/spf13/hugo/commands"
|
||||||
|
jww "github.com/spf13/jwalterweatherman"
|
||||||
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
commands.Execute()
|
commands.Execute()
|
||||||
|
|
||||||
|
if jww.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) > 0 {
|
||||||
|
os.Exit(-1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user