pub struct ApplyArgs {
pub target: String,
pub scope: SnapshotScope,
pub model: Option<String>,
pub settings_path: Option<PathBuf>,
pub backup: bool,
pub yes: bool,
}Expand description
Arguments for applying snapshots/templates
Fields§
§target: StringSnapshot name or template type
scope: SnapshotScopeWhat to include in the snapshot (default: common)
model: Option<String>Override model setting
settings_path: Option<PathBuf>Path to settings file (default: .claude/settings.json)
backup: boolBackup current settings before applying
yes: boolSkip confirmation prompt
Trait Implementations§
Source§impl Args for ApplyArgs
impl Args for ApplyArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for ApplyArgs
impl FromArgMatches for ApplyArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ApplyArgs
impl RefUnwindSafe for ApplyArgs
impl Send for ApplyArgs
impl Sync for ApplyArgs
impl Unpin for ApplyArgs
impl UnwindSafe for ApplyArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more