Move primitives for add, list, remove into their own subcommands as alias,host etc.
This commit is contained in:
+3
@@ -163,6 +163,9 @@ func (c Command) startApp(ctx *Context) error {
|
||||
// set CommandNotFound
|
||||
app.CommandNotFound = ctx.App.CommandNotFound
|
||||
|
||||
app.CustomAppHelpTemplate = c.CustomHelpTemplate
|
||||
app.HideVersion = ctx.App.HideVersion
|
||||
|
||||
// set the flags and commands
|
||||
app.Commands = c.Subcommands
|
||||
app.Flags = c.Flags
|
||||
|
||||
Reference in New Issue
Block a user