Route console diagnostics and stage progress through native reporting

This commit is contained in:
2026-11-20 05:59:09 +00:00
parent c7a5ff316d
commit c523def852
23 changed files with 309 additions and 76 deletions

View File

@@ -60,7 +60,7 @@ func cleanCommand(deps commandDependencies) commandkit.Command {
Arguments: []commandkit.Argument[*cleanCommandInput]{commandkit.ValueArgument(commandkit.ArgumentMeta{Name: "SESSION", Usage: "Session identity, omitted with --all."}, false, stringValue, func(input **cleanCommandInput, value commandkit.Supplied[string]) { (*input).Selection.Session = value })},
CheckInput: checkCleanInput,
Run: func(invocation commandkit.Invocation, input *cleanCommandInput) commandkit.Outcome {
report, err := cleanSelectedSession(invocation.Context, input, deps)
report, err := cleanSelectedSession(invocation.Context, input, withCommandReporting(deps, invocation))
if report != nil {
err = errors.Join(err, invocation.Reporter().Report(commandkit.Report{Value: report}))
}