pub enum Command {
List,
Add {
url: String,
name: Option<String>,
branch: Option<String>,
pattern: Vec<String>,
path: Option<PathBuf>,
strategy_option: StrategyOption,
},
Fetch {
name: Option<String>,
},
Rm {
name: String,
},
Track {
name: String,
pattern: Vec<String>,
},
Untrack {
name: String,
pattern: Vec<String>,
},
Status,
Prune,
Merge {
name: Option<String>,
all: bool,
strategy_option: StrategyOption,
},
Pull {
name: Option<String>,
all: bool,
strategy_option: StrategyOption,
},
}Variants§
List
List all configured vendor sources.
Add
Add a new vendor source.
Fields
name: Option<String>A unique name for this vendor (used in config keys and ref names).
Defaults to the basename of the URL, minus any .git suffix.
path: Option<PathBuf>Local directory where vendored files are placed (defaults to current directory).
strategy_option: StrategyOptionStrategy option for resolving conflicting regions during the merge.
Fetch
Fetch the latest upstream commits for one or all vendors.
Rm
Remove a vendor source and its associated refs and attributes.
Track
Add glob pattern(s) to an existing vendor’s configuration.
Untrack
Remove glob pattern(s) from an existing vendor’s configuration.
Status
Show which vendors have unmerged upstream changes.
Prune
Clean up refs/vendor/* refs that have no corresponding entry in .gitvendors.
Merge
Merge upstream changes for a vendor.
Fields
strategy_option: StrategyOptionStrategy option for resolving conflicting regions during the merge.
Pull
Fetch and merge upstream changes for a vendor.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand