#[derive(Debug, Clone, Copy, ValueEnum)]
enum CompletionShell {
Bash,
Zsh,
Fish,
Powershell,
Nushell,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
enum DisplayFormat {
Text,
Json,
Yaml,
}
#[derive(Debug, Clone, Copy, ValueEnum)]
enum CompareFormat {
Text,
Json,
Yaml,
Ndjson,
}
#[derive(Debug, Clone, Copy, ValueEnum)]
enum CompareDetail {
Summary,
Top,
Full,
}
#[derive(Debug, Clone, Copy, ValueEnum)]
enum HealthFormat {
Text,
Markdown,
Github,
Json,
}
#[derive(Debug, Clone, Copy, ValueEnum)]
enum CheckFormat {
Text,
Json,
Github,
}
#[derive(Debug, Clone, Copy, ValueEnum)]
enum PolicySource {
Base,
Head,
}
impl PolicySource {
fn as_str(self) -> &'static str {
match self {
Self::Base => "base",
Self::Head => "head",
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
enum ErrorFormat {
Human,
Json,
}
#[derive(Debug, Clone, Copy, ValueEnum)]
enum ContextBand {
Compact,
Healthy,
Warning,
Critical,
}
impl ContextBand {
fn as_str(self) -> &'static str {
match self {
Self::Compact => "compact",
Self::Healthy => "healthy",
Self::Warning => "warning",
Self::Critical => "critical",
}
}
}
#[derive(Debug, Clone, Copy, ValueEnum)]
enum SlopBand {
Low,
Moderate,
High,
Critical,
}
impl SlopBand {
fn as_str(self) -> &'static str {
match self {
Self::Low => "low",
Self::Moderate => "moderate",
Self::High => "high",
Self::Critical => "critical",
}
}
}