Route console diagnostics and stage progress through native reporting
This commit is contained in:
@@ -74,7 +74,7 @@ type sessionPublishedOutput struct {
|
||||
func sessionStateCommand(name string, status bool, deps commandDependencies) commandkit.Command {
|
||||
spec := sessionInspectionSpec(name, "Inspect session state without changing it.", !status)
|
||||
spec.Run = func(invocation commandkit.Invocation, input *sessionInspectionInput) commandkit.Outcome {
|
||||
report, err := inspectSelectedSessionState(invocation.Context, input, status, deps)
|
||||
report, err := inspectSelectedSessionState(invocation.Context, input, status, withCommandReporting(deps, invocation))
|
||||
if report != nil {
|
||||
err = errors.Join(err, invocation.Reporter().Report(commandkit.Report{Value: report}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user