commands: Make the gen commands non-global

See #4598
This commit is contained in:
Bjørn Erik Pedersen
2018-04-09 22:09:11 +02:00
parent e26a8b242a
commit e0621d207c
5 changed files with 155 additions and 96 deletions

View File

@@ -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())
}