Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/runner/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -976,15 +976,15 @@ fn render_conclude<W: Write>(out: &mut W, label: &str, verdict: &UserInput, rend
let _ = writeln!(out, "{} {}", line, renderer.style(syntax, glyph));
}

/// Render an automatically-run shell command on one line: `{path} $ {script}`,
/// Render an automatically-run shell command on one line: `{path} $ {script}`,
/// the whole line dark grey like the trace chrome so it reads as announce
/// rather than as the command's own output that follows. The `$` stands in for
/// a shell prompt (distinct from the user's `▶` edit prompt). Trailing
/// whitespace is trimmed so a code block's blank tail line is not echoed.
fn render_command<W: Write>(out: &mut W, qualified: &str, script: &str, renderer: &dyn Render) {
let line = renderer.style(
Syntax::Marker,
&format!("{} $ {}", qualified, script.trim_end()),
&format!("{} $ {}", qualified, script.trim_end()),
);
let _ = writeln!(out, "{}", line);
}
Expand Down