mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Hugo updated to work with latest cobra
This commit is contained in:
parent
9af47f07d3
commit
23a711a29a
1 changed files with 1 additions and 3 deletions
|
@ -42,14 +42,12 @@ Complete documentation is available at http://hugo.spf13.com`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var Hugo *cobra.Commander
|
|
||||||
var BuildWatch, Draft, UglyUrls, Verbose bool
|
var BuildWatch, Draft, UglyUrls, Verbose bool
|
||||||
var Source, Destination, BaseUrl, CfgFile string
|
var Source, Destination, BaseUrl, CfgFile string
|
||||||
|
|
||||||
func Execute() {
|
func Execute() {
|
||||||
AddCommands()
|
AddCommands()
|
||||||
Hugo := HugoCmd.ToCommander()
|
utils.StopOnErr(HugoCmd.Execute())
|
||||||
utils.StopOnErr(Hugo.Execute())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddCommands() {
|
func AddCommands() {
|
||||||
|
|
Loading…
Reference in a new issue