mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
@@ -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.
|
||||
|
Reference in New Issue
Block a user