1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use super::Status;
use colored::*;

impl Status {
    pub fn symbol(&self) -> String {
        match self {
            Status::Unknown => format!("{}", "?".yellow().bold()),
            Status::Warning => format!("{}", "!".yellow().bold()),
            Status::Ok => format!("{}", "✓".green().bold()),
            Status::Error => format!("{}", "X".red().bold().dimmed()),
        }
    }
}