Skip to content

Commit 59aec45

Browse files
epagerami3l
authored andcommitted
fix(list): Match show command's styling
This changes the parenthetical from `bold` to `CONTEXT` to match what was done in #4556. This does not remove the bolding of the item itself. We could do that. I figured its fine for now since there is a clearer meaning with `installed` than when you can have `active` and `default` on separate items.
1 parent f91ea2e commit 59aec45

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/cli/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pub(super) fn list_items(
251251
let bold = Style::new().bold();
252252
for (name, installed) in items {
253253
if installed && !installed_only && !quiet {
254-
writeln!(t, "{bold}{name} (installed){bold:#}")?;
254+
writeln!(t, "{bold}{name}{bold:#} {CONTEXT}(installed){CONTEXT:#}")?;
255255
} else if installed || !installed_only {
256256
writeln!(t, "{name}")?;
257257
}

tests/suite/cli_rustup_ui/rustup_component_list.stdout.term.svg

Lines changed: 5 additions & 4 deletions
Loading

0 commit comments

Comments
 (0)