pub struct UpgradeApplyArgs {
pub dry_run: bool,
pub patch_only: bool,
pub minor_and_patch: bool,
pub packages: Option<Vec<String>>,
pub auto_changeset: bool,
pub changeset_bump: String,
pub no_backup: bool,
pub force: bool,
}Expand description
Arguments for the upgrade apply command.
Fields§
§dry_run: boolPreview without applying.
Shows what would be upgraded without making changes.
patch_only: boolOnly apply patch upgrades.
Restricts upgrades to patch versions only.
minor_and_patch: boolOnly apply minor and patch upgrades.
Restricts upgrades to non-breaking versions.
packages: Option<Vec<String>>Comma-separated list of packages to upgrade.
Only upgrades specified packages.
auto_changeset: boolAutomatically create changeset.
Creates a changeset for the upgrades.
changeset_bump: StringChangeset bump type.
Options: major, minor, patch Default: patch
no_backup: boolSkip backup creation.
Does not create a backup before upgrading. Use with caution!
Backups allow rollback via ‘workspace upgrade backups restore’. Without backups, you must rely on Git history for recovery.
Recommended for:
- CI/CD pipelines with version control
- Testing environments
- When Git commits provide sufficient backup
⚠ Not recommended for:
- Production environments
- Uncommitted changes
- First-time users
force: boolSkip confirmations.
Automatically confirms all prompts.
Trait Implementations§
Source§impl Args for UpgradeApplyArgs
impl Args for UpgradeApplyArgs
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 UpgradeApplyArgs
impl Debug for UpgradeApplyArgs
Source§impl FromArgMatches for UpgradeApplyArgs
impl FromArgMatches for UpgradeApplyArgs
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.