Print only first line of goal in arc run start output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-08 10:01:36 -04:00
parent 2b8da8f15b
commit a019082dfc

View file

@ -274,7 +274,8 @@ pub async fn run_command(
let goal = graph.goal();
if !goal.is_empty() {
eprintln!("{} {goal}\n", styles.bold.apply_to("Goal:"));
let first_line = goal.lines().next().unwrap_or(&goal);
eprintln!("{} {first_line}\n", styles.bold.apply_to("Goal:"));
}
print_diagnostics(&diagnostics, styles);