(text: T)
| 87 | |
| 88 | #[cfg(feature = "anstyle")] |
| 89 | pub fn bold_green<T: std::fmt::Display>(text: T) -> String { |
| 90 | use anstyle::{AnsiColor, Style}; |
| 91 | let style = Style::new().bold().fg_color(Some(anstyle::Color::Ansi(AnsiColor::Green))); |
| 92 | format!("{style}{text}{style:#}") |
| 93 | } |
| 94 | |
| 95 | #[cfg(feature = "owo-colors")] |
| 96 | #[cfg(not(feature = "anstyle"))] |
no outgoing calls
no test coverage detected