Move primitives for add, list, remove into their own subcommands as alias,host etc.

This commit is contained in:
Harshavardhana
2015-09-01 19:58:33 -07:00
parent bb4e3bc1eb
commit c46ea80fff
15 changed files with 530 additions and 238 deletions
+3
View File
@@ -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