auth_tarball_from_git/
args.rs

1use std::path::PathBuf;
2
3/// Verify a tarball using signed git tags and reproducible builds
4#[derive(Debug, clap::Parser)]
5pub struct Args {
6    /// A file with trusted public keys to verify with
7    #[clap(long = "keyring")]
8    pub keyrings: Vec<PathBuf>,
9    /// The tag to verify and use to reproduce the tarball
10    #[clap(long)]
11    pub tag: Option<String>,
12    /// Specify a signed commit that should be used instead of a signed tag
13    #[clap(long)]
14    pub commit: Option<String>,
15    /// Resolve a tag to a commit and verify
16    #[clap(long)]
17    pub resolve_unsigned_tag: bool,
18    /// The prefix to use when generating the tarball, this is automatically detected otherwise
19    #[clap(long)]
20    pub prefix: Option<String>,
21    /// Use this name for the archive prefix instead of deriving one automatically
22    #[clap(long)]
23    pub name: Option<String>,
24    /// Use a specific format for the archive
25    #[clap(long, default_value = "tar.gz")]
26    pub format: String,
27    /// The remote repository to clone
28    pub repo: String,
29    /// Path to the tarball that should be verified
30    pub tarball: String,
31}