From fe88b53e50034e185246e03be586c470ca4fbf78 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sat, 25 Mar 2023 15:29:46 +0100 Subject: refactor: include mitata (#18426) --- runtime/colors.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'runtime') diff --git a/runtime/colors.rs b/runtime/colors.rs index c978e19c3..a9ad12e8c 100644 --- a/runtime/colors.rs +++ b/runtime/colors.rs @@ -10,6 +10,7 @@ use termcolor::Color::Black; use termcolor::Color::Blue; use termcolor::Color::Cyan; use termcolor::Color::Green; +use termcolor::Color::Magenta; use termcolor::Color::Red; use termcolor::Color::White; use termcolor::Color::Yellow; @@ -104,6 +105,17 @@ pub fn cyan>(s: S) -> impl fmt::Display { style_spec.set_fg(Some(Cyan)); style(s, style_spec) } +pub fn cyan_bold>(s: S) -> impl fmt::Display { + let mut style_spec = ColorSpec::new(); + style_spec.set_fg(Some(Cyan)).set_bold(true); + style(s, style_spec) +} + +pub fn magenta>(s: S) -> impl fmt::Display { + let mut style_spec = ColorSpec::new(); + style_spec.set_fg(Some(Magenta)); + style(s, style_spec) +} pub fn red>(s: S) -> impl fmt::Display { let mut style_spec = ColorSpec::new(); -- cgit v1.2.3