pub struct UpgradeArgs {
pub target: Utf8PathBuf,
pub scopes: Option<String>,
pub workflow: Option<String>,
pub apply: bool,
pub json: bool,
}Expand description
Take a landed target to this binary’s payload. The technology, the forge, and the landing parameters all come from the record, so an upgrade cannot silently switch either.
Fields§
§target: Utf8PathBufThe landed repository to upgrade.
scopes: Option<String>The Conventional Commit scopes this project accepts, comma-separated. A record that already carries them needs no flag; a record from before the parameter existed refuses until one names them, and the answer is recorded.
workflow: Option<String>Change the recorded working-copy mode: worktree or branches. The one overridden parameter — everything else comes from the record — and the apply’s diff is the visible mode change. Omitted, the recorded mode is kept.
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.