#[derive(Copy, Clone, Debug, PartialEq)]
pub(crate) enum State {
Waiting,
Running,
Success,
Failure,
}
impl State {
pub(crate) fn color(&self) -> String {
match self {
State::Waiting => "yellow",
State::Running => "orange",
State::Success => "green",
State::Failure => "red",
}.to_string()
}
}