commands: Make the new commands non-global

See #4598
This commit is contained in:
Bjørn Erik Pedersen 2018-04-09 19:36:10 +02:00
parent 4b780ca778
commit 56a1308044
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
7 changed files with 415 additions and 271 deletions

View file

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