Make Command accessible from Context

This commit is contained in:
Chris Winslett
2014-03-29 12:02:05 -07:00
parent 3fa24ca4f3
commit c69522c960
3 changed files with 6 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ func (c Command) Run(ctx *Context) error {
if checkCommandHelp(context, c.Name) {
return nil
}
context.Command = c
c.Action(context)
return nil
}