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

@@ -27,6 +27,16 @@ type Streams struct {
Err io.Writer
}
func normalizeStreams(streams Streams) Streams {
if streams.Out == nil {
streams.Out = io.Discard
}
if streams.Err == nil {
streams.Err = io.Discard
}
return streams
}
// Invocation provides execution context and output streams to a command
// handler. For command aliases, EnteredPath and CanonicalPath expose the route
// the caller used and the selected canonical command path. Both omit the