fix: Propagate App.Reader to subcommands
This change copies the `Reader` set in `App` to the new `App` created for subcommands. I've also added a basic test to demonstrate the issue.
This commit is contained in:
@@ -243,6 +243,7 @@ func (c *Command) startApp(ctx *Context) error {
|
||||
app.Version = ctx.App.Version
|
||||
app.HideVersion = true
|
||||
app.Compiled = ctx.App.Compiled
|
||||
app.Reader = ctx.App.Reader
|
||||
app.Writer = ctx.App.Writer
|
||||
app.ErrWriter = ctx.App.ErrWriter
|
||||
app.ExitErrHandler = ctx.App.ExitErrHandler
|
||||
|
Reference in New Issue
Block a user