summaryrefslogtreecommitdiffstats
path: root/commands/limit_darwin.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-10 09:19:26 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-11 09:50:19 +0200
commit4d32f2fa8969f368b088dc9bcedb45f2c986cb27 (patch)
treea091c49f6011605f08b92b9dbdb2d2acdd87f9ce /commands/limit_darwin.go
parent018602c46db8d729af2871bd5f4c1e7480420f09 (diff)
commands: Make the hugo command non-global
See #4598
Diffstat (limited to 'commands/limit_darwin.go')
-rw-r--r--commands/limit_darwin.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/commands/limit_darwin.go b/commands/limit_darwin.go
index bc5f42a57..20341fa1c 100644
--- a/commands/limit_darwin.go
+++ b/commands/limit_darwin.go
@@ -23,7 +23,7 @@ import (
var _ cmder = (*limitCmd)(nil)
type limitCmd struct {
- cmd *cobra.Command
+ *baseCmd
}
func newLimitCmd() *limitCmd {
@@ -58,11 +58,7 @@ This is primarily to ensure that Hugo can watch enough files on some OSs`,
},
}
- return &limitCmd{cmd: ccmd}
-}
-
-func (c *limitCmd) getCommand() *cobra.Command {
- return c.cmd
+ return &limitCmd{baseCmd: newBaseCmd(ccmd)}
}
func init() {