Add managed reporter output state

This commit is contained in:
2026-10-26 02:39:16 +00:00
parent e56537690b
commit f5a5bbac58
5 changed files with 371 additions and 11 deletions

View File

@@ -215,16 +215,6 @@ func (current *execution) routeUsageLine() string {
return line + "\nAlias for: " + canonical
}
func normalizeStreams(streams Streams) Streams {
if streams.Out == nil {
streams.Out = io.Discard
}
if streams.Err == nil {
streams.Err = io.Discard
}
return streams
}
func (a *App) present(outcome Outcome, path []string, streams Streams) Outcome {
return a.presentWithUsageLine(outcome, path, streams, a.usageLine)
}