Skip to content

Commit

Permalink
Paint aliases in --list purple
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaddeo committed Sep 11, 2024
1 parent 60cd9a7 commit e120daa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ impl Color {
self.restyle(Style::new().fg(Blue))
}

pub(crate) fn alias(self) -> Self {
self.restyle(Style::new().fg(Purple))
}

pub(crate) fn error(self) -> Self {
self.restyle(Style::new().fg(Red).bold())
}
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl Subcommand {
config
.color
.stdout()
.doc()
.alias()
.paint(&format!("[aliases: {}]", aliases.join(", ")))
);
}
Expand Down

0 comments on commit e120daa

Please sign in to comment.