pub enum ExtensionCmd {
List,
Install {
repo: String,
build: Option<String>,
yes: bool,
},
Create {
name: String,
cargo: bool,
},
Remove {
name: String,
yes: bool,
},
Upgrade {
name: Option<String>,
},
}Variants§
List
List extension commands discovered on PATH and in the managed dir.
Install
Clone a Gitee repo into the managed extensions dir and (optionally) build it.
Fields
Create
Scaffold a new extension project in the current directory.
Fields
Remove
Remove an installed extension from the managed dir.
Upgrade
Pull (and rebuild, if needed) installed extensions. With no name: all.
Trait Implementations§
Source§impl Clone for ExtensionCmd
impl Clone for ExtensionCmd
Source§fn clone(&self) -> ExtensionCmd
fn clone(&self) -> ExtensionCmd
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromArgMatches for ExtensionCmd
impl FromArgMatches for ExtensionCmd
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<'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>
Assign values from
ArgMatches to self.Source§impl Subcommand for ExtensionCmd
impl Subcommand for ExtensionCmd
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ExtensionCmd
impl RefUnwindSafe for ExtensionCmd
impl Send for ExtensionCmd
impl Sync for ExtensionCmd
impl Unpin for ExtensionCmd
impl UnsafeUnpin for ExtensionCmd
impl UnwindSafe for ExtensionCmd
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