commands: Make the server command non-global

See #4598
This commit is contained in:
Bjørn Erik Pedersen 2018-04-09 22:28:03 +02:00
parent e0621d207c
commit 2f0d98a19b
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
3 changed files with 78 additions and 59 deletions

View file

@ -193,7 +193,7 @@ func Execute() {
// AddCommands adds child commands to the root command HugoCmd.
func AddCommands() {
HugoCmd.AddCommand(serverCmd)
HugoCmd.AddCommand(newServerCmd().getCommand())
HugoCmd.AddCommand(newVersionCmd().getCommand())
HugoCmd.AddCommand(newEnvCmd().getCommand())
HugoCmd.AddCommand(newConfigCmd().getCommand())