Skip to main content

release_kit/cli/
payload.rs

1//! Arguments for `rk payload`.
2
3use clap::Args;
4
5/// Report the payload this binary carries: the version, every root, and
6/// the digests that identify the artifact set.
7#[derive(Debug, Args)]
8pub struct PayloadArgs {
9    /// Another release's manifest, read through the crates venue: an exact
10    /// version or `latest`, fetched once, verified against the registry
11    /// index checksum, and cached by that checksum.
12    #[arg(long, value_name = "VERSION")]
13    pub release: Option<String>,
14    /// Emit one JSON object on stdout instead of the human report.
15    #[arg(long)]
16    pub json: bool,
17}