Skip to content

Commit

Permalink
Remove deprecation of App.RunAsSubCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed May 27, 2023
1 parent bc224e9 commit 55f63b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,8 @@ func (a *App) RunContext(ctx context.Context, arguments []string) (err error) {
return a.rootCommand.Run(cCtx, arguments...)
}

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

Expand Down

0 comments on commit 55f63b6

Please sign in to comment.