summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2013-11-01 18:43:41 -0400
committerspf13 <steve.francia@gmail.com>2013-11-01 18:43:41 -0400
commit23a711a29a587651cfb85f53223dc0260367ac6a (patch)
tree189b1b7e06cee932265a4406fe6fb0222a43cae9
parent9af47f07d3f9700e233a98d7e84d85c3a30f9cd5 (diff)
Hugo updated to work with latest cobra
-rw-r--r--commands/hugo.go4
1 files changed, 1 insertions, 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() {