chore: Replace emoji status indicators with text equivalents

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-12-09 07:55:33 -03:00
parent 34152dabc3
commit ea3aa1413f

View file

@ -50,12 +50,12 @@ pub enum ComponentStatus {
impl std::fmt::Display for ComponentStatus { impl std::fmt::Display for ComponentStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self { match self {
ComponentStatus::Running => write!(f, " Running"), ComponentStatus::Running => write!(f, "[OK] Running"),
ComponentStatus::Stopped => write!(f, "⏹️ Stopped"), ComponentStatus::Stopped => write!(f, "[STOP] Stopped"),
ComponentStatus::Error => write!(f, " Error"), ComponentStatus::Error => write!(f, "[ERR] Error"),
ComponentStatus::Updating => write!(f, "🔄 Updating"), ComponentStatus::Updating => write!(f, "[UPD] Updating"),
ComponentStatus::NotInstalled => write!(f, " Not Installed"), ComponentStatus::NotInstalled => write!(f, "[--] Not Installed"),
ComponentStatus::Unknown => write!(f, " Unknown"), ComponentStatus::Unknown => write!(f, "[?] Unknown"),
} }
} }
} }
@ -314,8 +314,8 @@ mod tests {
#[test] #[test]
fn test_status_display() { fn test_status_display() {
assert_eq!(ComponentStatus::Running.to_string(), " Running"); assert_eq!(ComponentStatus::Running.to_string(), "[OK] Running");
assert_eq!(ComponentStatus::Error.to_string(), " Error"); assert_eq!(ComponentStatus::Error.to_string(), "[ERR] Error");
} }
#[test] #[test]