use console::{Style, StyledObject};
pub fn ok() -> StyledObject<&'static str> {
Style::new().for_stderr().green().apply_to("\u{2713}")
}
pub fn err() -> StyledObject<&'static str> {
Style::new().for_stderr().red().apply_to("\u{2717}")
}
pub fn warn() -> StyledObject<&'static str> {
Style::new().for_stderr().yellow().apply_to("?")
}
pub fn arrow() -> StyledObject<&'static str> {
Style::new().for_stderr().cyan().apply_to("\u{2192}")
}
pub fn good() -> Style {
Style::new().for_stderr().green()
}
pub fn bad() -> Style {
Style::new().for_stderr().red()
}
pub fn header() -> Style {
Style::new().dim().bold()
}
pub fn label() -> Style {
Style::new().dim()
}
pub fn name() -> Style {
Style::new().bold()
}
pub fn cmd() -> Style {
Style::new().green()
}
pub fn kind(kind: &str) -> Style {
match kind {
"container" => Style::new().cyan(),
"workflow" => Style::new().magenta(),
_ => Style::new(),
}
}