From 23a711a29a587651cfb85f53223dc0260367ac6a Mon Sep 17 00:00:00 2001 From: spf13 Date: Fri, 1 Nov 2013 18:43:41 -0400 Subject: [PATCH] Hugo updated to work with latest cobra --- commands/hugo.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/hugo.go b/commands/hugo.go index 83b3334a7..d24612659 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() {