Merge pull request #74 from Winslett/context-accessible-command
Make Command accessible from Context
This commit is contained in:
@@ -91,6 +91,7 @@ func (c Command) Run(ctx *Context) error {
|
||||
if checkCommandHelp(context, c.Name) {
|
||||
return nil
|
||||
}
|
||||
context.Command = c
|
||||
c.Action(context)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user