commands: Make the import commands non-global

See #4598
This commit is contained in:
Bjørn Erik Pedersen
2018-04-09 20:37:17 +02:00
parent 15b1e269ad
commit 2a2c983867
2 changed files with 45 additions and 29 deletions

View File

@@ -202,7 +202,7 @@ func AddCommands() {
HugoCmd.AddCommand(newConvertCmd().getCommand())
HugoCmd.AddCommand(newNewCmd().getCommand())
HugoCmd.AddCommand(listCmd)
HugoCmd.AddCommand(importCmd)
HugoCmd.AddCommand(newImportCmd().getCommand())
HugoCmd.AddCommand(genCmd)
genCmd.AddCommand(genautocompleteCmd)