use std::path::PathBuf;
use clap::{Parser, Subcommand, ValueEnum};
#[derive(Parser, Debug)]
#[command(name = "wickra-strategy-ci", version, about)]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand, Debug)]
pub enum Command {
Run {
path: PathBuf,
#[arg(long)]
data: PathBuf,
#[arg(long, value_enum, default_value_t = Format::Text)]
format: Format,
#[arg(long)]
fail_fast: bool,
},
Bless {
path: PathBuf,
#[arg(long)]
data: PathBuf,
},
List {
path: PathBuf,
},
Version,
}
#[derive(ValueEnum, Clone, Copy, Debug, PartialEq, Eq)]
pub enum Format {
Text,
Json,
}