From: spf13 Date: Fri, 1 Nov 2013 22:43:41 +0000 (-0400) Subject: Hugo updated to work with latest cobra X-Git-Tag: v0.9~19 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=23a711a29a587651cfb85f53223dc0260367ac6a;p=brevno-suite%2Fhugo Hugo updated to work with latest cobra --- diff --git a/commands/hugo.go b/commands/hugo.go index 83b3334a..d2461265 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -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() {