Struct magoo::UpdateCommand
source · pub struct UpdateCommand {
pub name: Option<String>,
pub branch: Option<String>,
pub unset_branch: bool,
pub url: Option<String>,
pub force: bool,
pub bypass: bool,
pub options: PrintOptions,
}Expand description
The update command
Fields§
§name: Option<String>Name of the submodule to update
If not specified, all submodules will be updated.
branch: Option<String>Change the branch of the submodule
unset_branch: boolUnset the update branch of the submodule
url: Option<String>Change the url of the submodule
force: boolWhether to force the submodule to be updated
This will pass the --force flag to git submodule update.
bypass: boolBypass warnings in the submodule state
options: PrintOptionsPrint options
Implementations§
Trait Implementations§
source§impl Args for UpdateCommand
impl Args for UpdateCommand
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§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
source§impl Clone for UpdateCommand
impl Clone for UpdateCommand
source§fn clone(&self) -> UpdateCommand
fn clone(&self) -> UpdateCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CommandFactory for UpdateCommand
impl CommandFactory for UpdateCommand
source§impl Debug for UpdateCommand
impl Debug for UpdateCommand
source§impl FromArgMatches for UpdateCommand
impl FromArgMatches for UpdateCommand
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.source§impl Parser for UpdateCommand
impl Parser for UpdateCommand
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
source§impl PartialEq for UpdateCommand
impl PartialEq for UpdateCommand
source§fn eq(&self, other: &UpdateCommand) -> bool
fn eq(&self, other: &UpdateCommand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateCommand
Auto Trait Implementations§
impl RefUnwindSafe for UpdateCommand
impl Send for UpdateCommand
impl Sync for UpdateCommand
impl Unpin for UpdateCommand
impl UnwindSafe for UpdateCommand
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