summaryrefslogtreecommitdiffhomepage
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-04-09 22:09:11 +0200
committerBjørn Erik Pedersen <[email protected]>2018-04-11 09:50:18 +0200
commite0621d207ce3278a82f8a60607e9cdd304149029 (patch)
tree086cebf89d337a5e65834b32fc06c0f04ea3b413 /commands/hugo.go
parente26a8b242a6434117d089a0799238add7025dbf4 (diff)
downloadhugo-e0621d207ce3278a82f8a60607e9cdd304149029.tar.gz
hugo-e0621d207ce3278a82f8a60607e9cdd304149029.zip
commands: Make the gen commands non-global
See #4598
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 30670a30e..8f1df441a 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -204,12 +204,7 @@ func AddCommands() {
HugoCmd.AddCommand(newListCmd().getCommand())
HugoCmd.AddCommand(newImportCmd().getCommand())
- HugoCmd.AddCommand(genCmd)
- genCmd.AddCommand(genautocompleteCmd)
- genCmd.AddCommand(gendocCmd)
- genCmd.AddCommand(genmanCmd)
- genCmd.AddCommand(createGenDocsHelper().getCommand())
- genCmd.AddCommand(createGenChromaStyles().getCommand())
+ HugoCmd.AddCommand(newGenCmd().getCommand())
}