pub struct UpgradeArgs {
pub target: Utf8PathBuf,
pub tech: Option<String>,
pub forge: Option<String>,
pub repo: Option<String>,
pub workflow: Option<String>,
pub style: Option<String>,
pub nix: Option<String>,
pub apply: bool,
pub json: bool,
}Expand description
Take a landed target to this binary’s payload, resolving flags over configuration and keeping recorded answers where both are silent.
Fields§
§target: Utf8PathBufThe landed repository to upgrade.
tech: Option<String>Override the configured payload binding.
forge: Option<String>Override the configured forge.
repo: Option<String>Override the configured project path.
workflow: Option<String>Change the recorded working-copy mode: worktree or branches. The apply writes the answer back into the config. Omitted, the config answers first and the recorded mode is the fallback.
style: Option<String>Change the recorded release style: trunk or lines. A record that already carries one needs no flag; a pre-style record needs landing.style in the config or this flag to answer it.
nix: Option<String>Change the recorded Nix opt-in: on adds the capability’s files
and records it; off drops them from the record while the files
stay on disk as the target’s own, like any file this payload stops
shipping. Omitted, configuration precedes the recorded choice.
apply: boolWrite the upgrade; without it every file’s action is listed and nothing is touched.
json: boolEmit one JSON object on stdout instead of the human report.
Trait Implementations§
Source§impl Args for UpgradeArgs
impl Args for UpgradeArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for UpgradeArgs
impl Debug for UpgradeArgs
Source§impl FromArgMatches for UpgradeArgs
impl FromArgMatches for UpgradeArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.