Skip to main content

release_kit/cli/
upgrade.rs

1//! Arguments for `rk upgrade`.
2
3use camino::Utf8PathBuf;
4use clap::Args;
5
6/// Take a landed target to this binary's payload. The technology, the
7/// forge, and the landing parameters all come from the record, so an
8/// upgrade cannot silently switch either.
9#[derive(Debug, Args)]
10pub struct UpgradeArgs {
11    /// The landed repository to upgrade.
12    #[arg(long, default_value = ".")]
13    pub target: Utf8PathBuf,
14
15    /// Write the upgrade; without it every file's action is listed and
16    /// nothing is touched.
17    #[arg(long)]
18    pub apply: bool,
19
20    /// Emit one JSON object on stdout instead of the human report.
21    #[arg(long)]
22    pub json: bool,
23}