mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Hugo updated to work with latest cobra
This commit is contained in:
@@ -42,14 +42,12 @@ Complete documentation is available at http://hugo.spf13.com`,
|
||||
},
|
||||
}
|
||||
|
||||
var Hugo *cobra.Commander
|
||||
var BuildWatch, Draft, UglyUrls, Verbose bool
|
||||
var Source, Destination, BaseUrl, CfgFile string
|
||||
|
||||
func Execute() {
|
||||
AddCommands()
|
||||
Hugo := HugoCmd.ToCommander()
|
||||
utils.StopOnErr(Hugo.Execute())
|
||||
utils.StopOnErr(HugoCmd.Execute())
|
||||
}
|
||||
|
||||
func AddCommands() {
|
||||
|
Reference in New Issue
Block a user