Struct magoo::InstallCommand
source · pub struct InstallCommand {
pub url: Option<String>,
pub path: Option<String>,
pub branch: Option<String>,
pub name: Option<String>,
pub depth: Option<usize>,
pub force: bool,
pub options: PrintOptions,
}Expand description
The install command
Fields§
§url: Option<String>URL of the git repository to add
See the add command of https://git-scm.com/docs/git-submodule for what formats are
supported.
path: Option<String>Local path to clone the git submodule to
Unlike the path specified with git submodule add, this path should be relative from
the top level (root) of the git repository.
branch: Option<String>Branch to checkout and track
This is the branch reference that will be used when updating the submodule.
If not specified, the behavior is the same as git submodule add without --branch
(HEAD is used)
name: Option<String>Name of the submodule
If not specified, the name of the submodule is the same as the path.
depth: Option<usize>Depth to clone the submodule
force: boolWhether to force the submodule to be added
This will pass the --force flag to git submodule add and git submodule update.
options: PrintOptionsPrint options
Implementations§
Trait Implementations§
source§impl Args for InstallCommand
impl Args for InstallCommand
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
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 InstallCommand
impl Clone for InstallCommand
source§fn clone(&self) -> InstallCommand
fn clone(&self) -> InstallCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl CommandFactory for InstallCommand
impl CommandFactory for InstallCommand
source§impl Debug for InstallCommand
impl Debug for InstallCommand
source§impl FromArgMatches for InstallCommand
impl FromArgMatches for InstallCommand
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.source§impl Parser for InstallCommand
impl Parser for InstallCommand
§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§impl PartialEq for InstallCommand
impl PartialEq for InstallCommand
source§fn eq(&self, other: &InstallCommand) -> bool
fn eq(&self, other: &InstallCommand) -> bool
self and other values to be equal, and is used
by ==.