mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 07:34:36 +00:00
fix(task): handle multiline descriptions properly (#27069)
Closes https://github.com/denoland/deno/issues/27049
This commit is contained in:
parent
2b26444584
commit
d4fe3311a6
3 changed files with 11 additions and 5 deletions
|
@ -721,11 +721,9 @@ fn print_available_tasks(
|
|||
)?;
|
||||
if let Some(description) = &desc.task.description {
|
||||
let slash_slash = colors::italic_gray("//");
|
||||
writeln!(
|
||||
writer,
|
||||
" {slash_slash} {}",
|
||||
colors::italic_gray(description)
|
||||
)?;
|
||||
for line in description.split('\n') {
|
||||
writeln!(writer, " {slash_slash} {}", colors::italic_gray(line))?;
|
||||
}
|
||||
}
|
||||
writeln!(writer, " {}", desc.task.command)?;
|
||||
if !desc.task.dependencies.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue