diff --git a/src/color.rs b/src/color.rs index f14a66207c..3c2969b8cc 100644 --- a/src/color.rs +++ b/src/color.rs @@ -73,6 +73,10 @@ impl Color { self.restyle(Style::new().fg(Red).bold()) } + pub(crate) fn group(self) -> Self { + self.restyle(Style::new().fg(Yellow).bold()) + } + pub(crate) fn warning(self) -> Self { self.restyle(Style::new().fg(Yellow).bold()) } diff --git a/src/subcommand.rs b/src/subcommand.rs index 449d4a0920..9e7486863d 100644 --- a/src/subcommand.rs +++ b/src/subcommand.rs @@ -575,7 +575,10 @@ impl Subcommand { if !no_groups { if let Some(group) = &group { - println!("{list_prefix}[{group}]"); + println!( + "{list_prefix}{}", + config.color.stdout().group().paint(&format!("[{group}]")) + ); } }