diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-09 22:28:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-11 09:50:18 +0200 |
commit | 2f0d98a19b021d03930003217b0519afaef3a391 (patch) | |
tree | d1ffde5a8d2300b1554a6017d74be57cd90f77d9 /commands/hugo.go | |
parent | e0621d207ce3278a82f8a60607e9cdd304149029 (diff) |
commands: Make the server command non-global
See #4598
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 8f1df441a..3c3cf26d3 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -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()) |