use std::fmt;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CmdVariant {
StateClean,
StateCurrent,
StateGoal,
StateDiff,
ApplyCheck,
ApplyExec,
}
impl fmt::Display for CmdVariant {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::StateClean => "state_clean".fmt(f),
Self::StateCurrent => "state_current".fmt(f),
Self::StateGoal => "state_goal".fmt(f),
Self::StateDiff => "state_diff".fmt(f),
Self::ApplyCheck => "apply_check".fmt(f),
Self::ApplyExec => "apply_exec".fmt(f),
}
}
}