Hugo updated to work with latest cobra
authorspf13 <steve.francia@gmail.com>
Fri, 1 Nov 2013 22:43:41 +0000 (18:43 -0400)
committerspf13 <steve.francia@gmail.com>
Fri, 1 Nov 2013 22:43:41 +0000 (18:43 -0400)
commands/hugo.go

index 83b3334a7e2184f0bd60fecd12247d32f276bc75..d246126599d965b371e497a477231a70e192a43d 100644 (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() {