pub enum ExtensionCommand {
List {
json: Option<Vec<String>>,
hostname: Option<String>,
},
Install {
name: String,
hostname: Option<String>,
},
Remove {
name: String,
hostname: Option<String>,
},
Upgrade {
name: Option<String>,
all: bool,
hostname: Option<String>,
},
}Expand description
Subcommands for gor extension.
Variants§
List
List installed extensions.
Fields
Install
Install an extension.
Fields
Remove
Remove an extension.
Fields
Upgrade
Upgrade extensions.
Trait Implementations§
Source§impl Debug for ExtensionCommand
impl Debug for ExtensionCommand
Source§impl FromArgMatches for ExtensionCommand
impl FromArgMatches for ExtensionCommand
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 ExtensionCommand
impl Subcommand for ExtensionCommand
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 ExtensionCommand
impl RefUnwindSafe for ExtensionCommand
impl Send for ExtensionCommand
impl Sync for ExtensionCommand
impl Unpin for ExtensionCommand
impl UnsafeUnpin for ExtensionCommand
impl UnwindSafe for ExtensionCommand
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