Hugo updated to work with latest cobra

This commit is contained in:
spf13 2013-11-01 18:43:41 -04:00
parent 9af47f07d3
commit 23a711a29a

View file

@ -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() {