Copy the writer of the App to the subcommand App
This commit is contained in:
parent
a6482d2687
commit
aba73cedac
@ -166,5 +166,8 @@ func (c Command) startApp(ctx *Context) error {
|
|||||||
app.Action = helpSubcommand.Action
|
app.Action = helpSubcommand.Action
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set the writer to the original App's writer
|
||||||
|
app.Writer = ctx.App.Writer
|
||||||
|
|
||||||
return app.RunAsSubcommand(ctx)
|
return app.RunAsSubcommand(ctx)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user