summaryrefslogtreecommitdiffstats
path: root/commands/limit_darwin.go
diff options
context:
space:
mode:
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() {