mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
parent
b9aaa0079b
commit
b25ba8b095
3 changed files with 5 additions and 44 deletions
|
@ -67,7 +67,10 @@ var Source, CacheDir, Destination, Theme, BaseURL, CfgFile, LogFile, Editor stri
|
|||
func Execute() {
|
||||
HugoCmd.SetGlobalNormalizationFunc(helpers.NormalizeHugoFlags)
|
||||
AddCommands()
|
||||
utils.StopOnErr(HugoCmd.Execute())
|
||||
if err := HugoCmd.Execute(); err != nil {
|
||||
// the err is already logged by Cobra
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
|
||||
//AddCommands adds child commands to the root command HugoCmd.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue