Route console diagnostics and stage progress through native reporting
This commit is contained in:
@@ -46,7 +46,7 @@ func sessionInspectionSpec(name, summary string, remoteOption bool) commandkit.C
|
||||
func sessionValidationCommand(deps commandDependencies) commandkit.Command {
|
||||
spec := sessionInspectionSpec("validate", "Check session readiness without executing work.", false)
|
||||
spec.Run = func(invocation commandkit.Invocation, input *sessionInspectionInput) commandkit.Outcome {
|
||||
report, err := validateSelectedSession(invocation.Context, input, deps)
|
||||
report, err := validateSelectedSession(invocation.Context, input, withCommandReporting(deps, invocation))
|
||||
if report != nil {
|
||||
err = errors.Join(err, invocation.Reporter().Report(commandkit.Report{Value: report}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user