Update docs

This commit is contained in:
Naveen Gogineni 2022-10-11 19:40:59 -04:00
parent 00afca42c8
commit 5100c9d4e9
2 changed files with 8 additions and 0 deletions

View File

@ -347,6 +347,10 @@ func (a *App) RunAndExitOnError()
to cli.App.Run. This will cause the application to exit with the given error to cli.App.Run. This will cause the application to exit with the given error
code in the cli.ExitCoder 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) 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 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 its commands and sub-commands. Through this, you can propagate timeouts and

View File

@ -347,6 +347,10 @@ func (a *App) RunAndExitOnError()
to cli.App.Run. This will cause the application to exit with the given error to cli.App.Run. This will cause the application to exit with the given error
code in the cli.ExitCoder 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) 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 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 its commands and sub-commands. Through this, you can propagate timeouts and