fabro/lib/apps/fabro-cli/tests/it/workflow
Bryan Helmkamp c501c67185
Show each diagnostic's suggested fix in CLI output
Diagnostics have carried a `fix` field all along, but the CLI renderer
never printed it — the suggestion was only reachable through --json. The
actionable half of every validation failure was invisible to the person
running the command.

print_diagnostics now emits the fix as a dim-labelled continuation line
under any diagnostic that has one, at both error and warning severity.
Gating it behind --verbose would defeat the point, and printing it only
for errors would read as "this warning has no fix" — the warning
suggestions are useful on their own. Diagnostics that set no fix simply
omit the line.

The severity match moved into print_diagnostic so the fix line is
appended once in the loop rather than copied into all five arms; the
rest of the diff is reindentation.

print_diagnostics is shared by validate, preflight, graph, exec, and
dry-run, so this covers all five. Eleven inline snapshots across four
files gain a fix line; every change is additive.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 14:06:31 -04:00
..
fixtures refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
acp.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
agent_linear.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
artifacts.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
command_agent_mixed.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
command_pipeline.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
command_routing.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
conditional_branching.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
dry_run_examples.rs Show each diagnostic's suggested fix in CLI output 2026-07-27 14:06:31 -04:00
full_stack.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
hooks.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
human_gate.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
mod.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00