aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/audit.rs
blob: 02b0d8d2a4df9d4de24db3651b6ad7d51b8bdb80 (plain)
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
use clap::Args;

#[derive(Args)]
pub struct AuditArgs {
    /// Disables installation of require-dev packages
    #[arg(long)]
    pub no_dev: bool,

    /// Output format (table, plain, json, summary)
    #[arg(short, long, default_value = "table")]
    pub format: String,

    /// Audit packages from the lock file
    #[arg(long)]
    pub locked: bool,

    /// Handling of abandoned packages (ignore, report, fail)
    #[arg(long)]
    pub abandoned: Option<String>,

    /// Ignore advisories of a given severity (low, medium, high, critical)
    #[arg(long)]
    pub ignore_severity: Vec<String>,

    /// Ignore advisories from sources that are unreachable
    #[arg(long)]
    pub ignore_unreachable: bool,
}

pub fn execute(_args: &AuditArgs) {
    todo!()
}