Route console diagnostics and stage progress through native reporting
This commit is contained in:
@@ -59,7 +59,7 @@ func analysisPlanReport(summary *stage.AnalyzeResumeSummary) *plannedAnalysis {
|
||||
func sessionPlanCommand(deps commandDependencies) commandkit.Command {
|
||||
spec := executionCommandSpec("plan", "Preview session work without executing it.", false)
|
||||
spec.Run = func(invocation commandkit.Invocation, input *executionInput) commandkit.Outcome {
|
||||
report, err := planSelectedPipeline(invocation.Context, input, deps)
|
||||
report, err := planSelectedPipeline(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