command-surface 0.4.1

Glyph-based command rendering and semantic metadata for the Koi CLI
Documentation
#[derive(Debug, Clone, Copy)]
pub enum Presentation {
    NerdFont(&'static str),
    Emoji(&'static str),
    Ascii(&'static str),
    None,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Color {
    Accent,
    Success,
    Warning,
    Danger,
    Muted,
    Info,
    Custom(u8, u8, u8),
}

pub trait Glyph {
    fn presentations(&self) -> &'static [Presentation] {
        &[]
    }

    fn color(&self) -> Option<Color> {
        None
    }

    fn badge(&self) -> Option<&'static str> {
        None
    }
}