summaryrefslogtreecommitdiff
path: root/cli/colors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/colors.rs')
-rw-r--r--cli/colors.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/colors.rs b/cli/colors.rs
index f792e2b33..0bf048943 100644
--- a/cli/colors.rs
+++ b/cli/colors.rs
@@ -78,6 +78,14 @@ pub fn red(s: String) -> impl fmt::Display {
style.paint(s)
}
+pub fn green(s: String) -> impl fmt::Display {
+ let mut style = Style::new();
+ if use_color() {
+ style = style.fg(Fixed(10)).bold();
+ }
+ style.paint(s)
+}
+
pub fn bold(s: String) -> impl fmt::Display {
let mut style = Style::new();
if use_color() {