cargo-allow 0.1.2

Source-tree exception ledger and policy scanner for Rust repositories.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Parser;
use std::path::PathBuf;

#[derive(Debug, Clone, Parser)]
pub(crate) struct InitArgs {
    /// Write strict-mode defaults.
    #[arg(long)]
    pub(crate) strict: bool,
    /// Overwrite an existing policy file.
    #[arg(long)]
    pub(crate) force: bool,
    /// Policy config path.
    #[arg(long, default_value = "policy/allow.toml")]
    pub(crate) config: PathBuf,
}