Skip to main content

spec_driven_docs/cli/
upgrade.rs

1//! `upgrade` subcommand: parse-shape.
2//!
3//! Holds the clap derive struct only. No I/O, no business logic.
4
5use camino::Utf8PathBuf;
6
7/// Upgrade an installed instance to this binary's version.
8#[derive(Debug, clap::Args)]
9pub struct UpgradeArgs {
10    /// The instance to upgrade; absolute, or the working directory.
11    #[arg(long, default_value = ".")]
12    pub target: Utf8PathBuf,
13
14    /// Report the plan and change nothing.
15    #[arg(long)]
16    pub dry_run: bool,
17
18    /// Answer one decision the interval raises, as `<decision-id>=<answer>`.
19    ///
20    /// Repeatable. A release between here and the destination can ask
21    /// something only a person can do, and this is how the answer travels
22    /// through the short form. `sdd reconcile plan` presents each one with
23    /// its body first.
24    #[arg(long = "set", value_name = "DECISION=ANSWER")]
25    pub set: Vec<String>,
26}