summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-09 22:28:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-11 09:50:18 +0200
commit2f0d98a19b021d03930003217b0519afaef3a391 (patch)
treed1ffde5a8d2300b1554a6017d74be57cd90f77d9 /commands/hugo.go
parente0621d207ce3278a82f8a60607e9cdd304149029 (diff)
commands: Make the server command non-global
See #4598
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go2
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())