Route console diagnostics and stage progress through native reporting
This commit is contained in:
@@ -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}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user