Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Oct 11, 2022
1 parent 00afca4 commit 5100c9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions godoc-current.txt
Expand Up @@ -347,6 +347,10 @@ func (a *App) RunAndExitOnError()
to cli.App.Run. This will cause the application to exit with the given error
code in the cli.ExitCoder

func (a *App) RunAsSubcommand(ctx *Context) (err error)
This is a stub function to keep public API unchanged from old code No one
should really use this. Always use a.Run to execute app

func (a *App) RunContext(ctx context.Context, arguments []string) (err error)
RunContext is like Run except it takes a Context that will be passed to
its commands and sub-commands. Through this, you can propagate timeouts and
Expand Down
4 changes: 4 additions & 0 deletions testdata/godoc-v2.x.txt
Expand Up @@ -347,6 +347,10 @@ func (a *App) RunAndExitOnError()
to cli.App.Run. This will cause the application to exit with the given error
code in the cli.ExitCoder

func (a *App) RunAsSubcommand(ctx *Context) (err error)
This is a stub function to keep public API unchanged from old code No one
should really use this. Always use a.Run to execute app

func (a *App) RunContext(ctx context.Context, arguments []string) (err error)
RunContext is like Run except it takes a Context that will be passed to
its commands and sub-commands. Through this, you can propagate timeouts and
Expand Down

0 comments on commit 5100c9d

Please sign in to comment.