reactive_graph_utils_test/color_string.rs
1use colored::ColoredString;
2use colored::Colorize;
3
4pub fn verb(s: &str) -> String {
5 format!("{:>12}", s.green().bold())
6}
7
8pub fn error_verb(s: &str) -> String {
9 format!("{:>12}", s.red().bold())
10}
11
12pub fn status_ok() -> ColoredString {
13 "✓".green()
14}
15
16pub fn status_failed() -> ColoredString {
17 "❌".red()
18}