#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum ColorChoice {
#[cfg_attr(not(feature = "color"), doc = " ```ignore")]
#[cfg_attr(feature = "color", doc = " ```no_run")]
Auto,
#[cfg_attr(not(feature = "color"), doc = " ```ignore")]
#[cfg_attr(feature = "color", doc = " ```no_run")]
Always,
#[cfg_attr(not(feature = "color"), doc = " ```ignore")]
#[cfg_attr(feature = "color", doc = " ```no_run")]
Never,
}
impl Default for ColorChoice {
fn default() -> Self {
Self::Auto
}
}
#[cfg(feature = "color")]
pub(crate) use termcolor::Color;
#[cfg(not(feature = "color"))]
#[derive(Debug)]
pub(crate) enum Color {
Green,
Yellow,
Red,
}