Fix comments for .After field on Command and App

This commit is contained in:
jszwedko 2015-02-20 16:21:27 -05:00
parent 532d0bc2e3
commit 50c77ecec0
2 changed files with 2 additions and 2 deletions

2
app.go
View File

@ -35,7 +35,7 @@ type App struct {
// If a non-nil error is returned, no subcommands are run // If a non-nil error is returned, no subcommands are run
Before func(context *Context) error Before func(context *Context) error
// An action to execute after any subcommands are run, but after the subcommand has finished // An action to execute after any subcommands are run, but after the subcommand has finished
// It is run regardless of Because() result // It is run even if Action() panics
After func(context *Context) error After func(context *Context) error
// The action to execute when no subcommands are specified // The action to execute when no subcommands are specified
Action func(context *Context) Action func(context *Context)

View File

@ -22,7 +22,7 @@ type Command struct {
// If a non-nil error is returned, no sub-subcommands are run // If a non-nil error is returned, no sub-subcommands are run
Before func(context *Context) error Before func(context *Context) error
// An action to execute after any subcommands are run, but after the subcommand has finished // An action to execute after any subcommands are run, but after the subcommand has finished
// It is run regardless of Because() result // It is run even if Action() panics
After func(context *Context) error After func(context *Context) error
// The function to call when this command is invoked // The function to call when this command is invoked
Action func(context *Context) Action func(context *Context)