From 8441abd29aea53719c19f34ec6d542a4575a23c9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 11 Feb 2026 00:15:14 +0900 Subject: define subcommands and options --- src/commands/audit.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/commands/audit.rs (limited to 'src/commands/audit.rs') diff --git a/src/commands/audit.rs b/src/commands/audit.rs new file mode 100644 index 0000000..02b0d8d --- /dev/null +++ b/src/commands/audit.rs @@ -0,0 +1,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, + + /// Ignore advisories of a given severity (low, medium, high, critical) + #[arg(long)] + pub ignore_severity: Vec, + + /// Ignore advisories from sources that are unreachable + #[arg(long)] + pub ignore_unreachable: bool, +} + +pub fn execute(_args: &AuditArgs) { + todo!() +} -- cgit v1.3.1