ravenous-tools/crates/config/src/analysis.rs

55 lines
1.4 KiB
Rust

// Workspace: config
// File: config/src/graph.rs
//! The inner config for the analysis module
//!
use clap::{Parser, ValueEnum};
#[derive(Parser, Debug)]
/// Basic analisys CLI
pub struct AnalysisConfig {
#[arg(help = format!("The target to perform an analysis on [{:?}]", AnalysisTarget::value_variants()))]
/// The analysis target
pub target: AnalysisTarget,
/// The path to save to.
pub path: Option<String>,
/// Wether to generate shapes
#[arg(short('S'), long, default_value_t)]
pub no_shapes: bool,
/// Wether to generate materials
#[arg(short, long)]
pub materials: Option<usize>,
/// Wether to generate all natures
#[arg(short('N'), long)]
pub no_natures: bool,
/// Wether to generate all finishing
#[arg(short, long, default_value_t = false)]
pub finishing: bool,
#[arg(long, default_value_t = String::from("safe"))]
/// What function to sort by
pub sort: String,
// An html export path -h or -o
// A csv export path -c or --csv
// A presort --sort
// A prefilter with some filters ?
// - weapons
// - shields
// - armors
// - damage
// Data manipulation ??
// - decimate
// - average per category
}
#[derive(ValueEnum, Clone, Debug)]
/// The type of analysis to perform
pub enum AnalysisTarget {
/// Analysis over weapons
Weapon,
/// Analysis over armors
Armors,
/// Analysis over shields
Shields,
}