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 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() {
|
||||||
|
Reference in New Issue
Block a user