Skip to main content

release_kit/cli/
versions.rs

1//! Arguments for `rk versions`.
2
3use clap::Args;
4
5/// Print the pinned-tool registry, or check it against the world.
6#[derive(Debug, Args)]
7pub struct VersionsArgs {
8    /// Explicitly go online: fetch each pin's check URL and report per
9    /// pin — current, update-available, source-unreachable, or
10    /// source-unparsable. Mutates nothing; a pin update is a reviewed
11    /// change to versions.toml.
12    #[arg(long)]
13    pub check: bool,
14
15    /// Emit one JSON object on stdout instead of the human report.
16    #[arg(long, requires = "check")]
17    pub json: bool,
18}