summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-09 19:36:10 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-11 09:48:56 +0200
commit56a13080446283ed1cde6b69fc6f4fac85076c84 (patch)
tree59316b9b8df2036aac0e8438c2ea31a6012c0802 /commands/hugo.go
parent4b780ca778ee7f25af808da38ede964a01698c70 (diff)
commands: Make the new commands non-global
See #4598
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index f4fbe45da..1237eaea1 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -194,13 +194,13 @@ func Execute() {
// AddCommands adds child commands to the root command HugoCmd.
func AddCommands() {
HugoCmd.AddCommand(serverCmd)
- HugoCmd.AddCommand(versionCmd)
- HugoCmd.AddCommand(envCmd)
+ HugoCmd.AddCommand(newVersionCmd().getCommand())
+ HugoCmd.AddCommand(newEnvCmd().getCommand())
HugoCmd.AddCommand(configCmd)
HugoCmd.AddCommand(newCheckCmd().getCommand())
HugoCmd.AddCommand(newBenchmarkCmd().getCommand())
HugoCmd.AddCommand(newConvertCmd().getCommand())
- HugoCmd.AddCommand(newCmd)
+ HugoCmd.AddCommand(newNewCmd().getCommand())
HugoCmd.AddCommand(listCmd)
HugoCmd.AddCommand(importCmd)