Skip to content

Commit 1ba66cf

Browse files
committed
Approve api change
1 parent d9d9022 commit 1ba66cf

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

godoc-current.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ func (a *App) RunAndExitOnError()
357357
code in the cli.ExitCoder
358358

359359
func (a *App) RunAsSubcommand(ctx *Context) (err error)
360-
This is a stub function to keep public API unchanged from old code
361-
362-
Deprecated: use App.Run or App.RunContext
360+
RunAsSubcommand is for legacy/compatibility purposes only. New code should
361+
only use App.RunContextMost. This function is slated to be removed in v3
363362

364363
func (a *App) RunContext(ctx context.Context, arguments []string) (err error)
365364
RunContext is like Run except it takes a Context that will be passed to

testdata/godoc-v2.x.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ func (a *App) RunAndExitOnError()
357357
code in the cli.ExitCoder
358358

359359
func (a *App) RunAsSubcommand(ctx *Context) (err error)
360-
This is a stub function to keep public API unchanged from old code
361-
362-
Deprecated: use App.Run or App.RunContext
360+
RunAsSubcommand is for legacy/compatibility purposes only. New code should
361+
only use App.RunContextMost. This function is slated to be removed in v3
363362

364363
func (a *App) RunContext(ctx context.Context, arguments []string) (err error)
365364
RunContext is like Run except it takes a Context that will be passed to

0 commit comments

Comments
 (0)