Skip to content

Commit 9a7d2e5

Browse files
authored
Use stdout_important() in list-builtins (#1608)
1 parent a2b0596 commit 9a7d2e5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

crates/prek/src/cli/list_builtins.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ pub(crate) fn list_builtins(
3131
ListOutputFormat::Text => {
3232
if verbose {
3333
for hook in hooks {
34-
writeln!(printer.stdout(), "{}", hook.id.bold())?;
34+
writeln!(printer.stdout_important(), "{}", hook.id.bold())?;
3535
if let Some(description) = &hook.options.description {
36-
writeln!(printer.stdout(), " {description}")?;
36+
writeln!(printer.stdout_important(), " {description}")?;
3737
}
38-
writeln!(printer.stdout())?;
38+
writeln!(printer.stdout_important())?;
3939
}
4040
} else {
4141
for hook in hooks {
42-
writeln!(printer.stdout(), "{}", hook.id)?;
42+
writeln!(printer.stdout_important(), "{}", hook.id)?;
4343
}
4444
}
4545
}
@@ -52,7 +52,7 @@ pub(crate) fn list_builtins(
5252
})
5353
.collect();
5454
let json_output = serde_json::to_string_pretty(&serializable)?;
55-
writeln!(printer.stdout(), "{json_output}")?;
55+
writeln!(printer.stdout_important(), "{json_output}")?;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)