1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! CLI Args structs for operational intelligence commands (complexity, impact, drift-predict).
/// FJ-1450: Configuration complexity analysis.
#[derive(clap::Args, Debug)]
pub struct ComplexityArgs {
/// Path to forjar.yaml
#[arg(short, long, default_value = "forjar.yaml")]
pub file: std::path::PathBuf,
/// Output as JSON
#[arg(long)]
pub json: bool,
}
/// FJ-1451: Dependency impact analysis.
#[derive(clap::Args, Debug)]
pub struct ImpactArgs {
/// Path to forjar.yaml
#[arg(short, long, default_value = "forjar.yaml")]
pub file: std::path::PathBuf,
/// Target resource to analyze impact for
#[arg(short, long)]
pub resource: String,
/// Output as JSON
#[arg(long)]
pub json: bool,
}
/// FJ-1452: Configuration drift prediction.
#[derive(clap::Args, Debug)]
pub struct DriftPredictArgs {
/// State directory
#[arg(long, default_value = "state")]
pub state_dir: std::path::PathBuf,
/// Target specific machine
#[arg(short, long)]
pub machine: Option<String>,
/// Limit number of predictions shown
#[arg(short, long, default_value = "0")]
pub limit: usize,
/// Output as JSON
#[arg(long)]
pub json: bool,
}