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}