diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-11 00:15:14 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-11 00:15:14 +0900 |
| commit | 8441abd29aea53719c19f34ec6d542a4575a23c9 (patch) | |
| tree | 2d5704acdae268253b69c4bb9a37653635037138 /src/commands/audit.rs | |
| parent | 9dacb9293f9b995c6c810227f73b4aa5cf019bab (diff) | |
| download | php-mozart-8441abd29aea53719c19f34ec6d542a4575a23c9.tar.gz php-mozart-8441abd29aea53719c19f34ec6d542a4575a23c9.tar.zst php-mozart-8441abd29aea53719c19f34ec6d542a4575a23c9.zip | |
define subcommands and options
Diffstat (limited to 'src/commands/audit.rs')
| -rw-r--r-- | src/commands/audit.rs | 32 |
1 files changed, 32 insertions, 0 deletions
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<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!() +} |
