From 5100c9d4e98551ce47828e51a99cabe2b2d044b8 Mon Sep 17 00:00:00 2001 From: Naveen Gogineni Date: Tue, 11 Oct 2022 19:40:59 -0400 Subject: [PATCH] Update docs --- godoc-current.txt | 4 ++++ testdata/godoc-v2.x.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/godoc-current.txt b/godoc-current.txt index 7db7c54cb7..73251e3615 100644 --- a/godoc-current.txt +++ b/godoc-current.txt @@ -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 diff --git a/testdata/godoc-v2.x.txt b/testdata/godoc-v2.x.txt index 7db7c54cb7..73251e3615 100644 --- a/testdata/godoc-v2.x.txt +++ b/testdata/godoc-v2.x.txt @@ -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