diff options
Diffstat (limited to 'cli/colors.rs')
-rw-r--r-- | cli/colors.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/colors.rs b/cli/colors.rs index a324d928d..3a1616d97 100644 --- a/cli/colors.rs +++ b/cli/colors.rs @@ -85,6 +85,12 @@ pub fn white_on_green(s: &str) -> impl fmt::Display { style(&s, style_spec) } +pub fn black_on_green(s: &str) -> impl fmt::Display { + let mut style_spec = ColorSpec::new(); + style_spec.set_bg(Some(Green)).set_fg(Some(Black)); + style(&s, style_spec) +} + pub fn yellow(s: &str) -> impl fmt::Display { let mut style_spec = ColorSpec::new(); style_spec.set_fg(Some(Yellow)); |