Route console diagnostics and stage progress through native reporting
This commit is contained in:
@@ -170,7 +170,7 @@ func restoreCommand(deps commandDependencies) commandkit.Command {
|
||||
})},
|
||||
CheckInput: func(input *restoreCommandInput) error { return checkConfigurationSelection(input.Selection) },
|
||||
Run: func(invocation commandkit.Invocation, input *restoreCommandInput) commandkit.Outcome {
|
||||
report, err := restoreSelectedSession(invocation.Context, input, deps)
|
||||
report, err := restoreSelectedSession(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