pub enum CargoMoveCmd {
Help(Help<Self>),
Start(StartCmd),
Version(VersionCmd),
}Expand description
CargoMove Subcommands
Variants§
Help(Help<Self>)
The help subcommand
Start(StartCmd)
The start subcommand
Version(VersionCmd)
The version subcommand
Trait Implementations§
Source§impl Command for CargoMoveCmd
impl Command for CargoMoveCmd
Source§fn description() -> &'static str
fn description() -> &'static str
Description of this program
Authors of this program
Source§fn subcommand_usage(command: &str) -> Option<Usage>
fn subcommand_usage(command: &str) -> Option<Usage>
get usage information for the named subcommand
Source§fn from_args<A>(into_args: A) -> Selfwhere
A: IntoIterator<Item = String>,
fn from_args<A>(into_args: A) -> Selfwhere
A: IntoIterator<Item = String>,
Parse command-line arguments from a string iterator
Source§fn from_env_args() -> Self
fn from_env_args() -> Self
Parse command-line arguments from the environment
Source§fn print_usage_and_exit(args: &[String]) -> !
fn print_usage_and_exit(args: &[String]) -> !
Print usage information and exit
Source§impl Configurable<CargoMoveConfig> for CargoMoveCmd
This trait allows you to define how application configuration is loaded.
impl Configurable<CargoMoveConfig> for CargoMoveCmd
This trait allows you to define how application configuration is loaded.
Source§fn config_path(&self) -> Option<PathBuf>
fn config_path(&self) -> Option<PathBuf>
Location of the configuration file
Source§fn process_config(
&self,
config: CargoMoveConfig,
) -> Result<CargoMoveConfig, FrameworkError>
fn process_config( &self, config: CargoMoveConfig, ) -> Result<CargoMoveConfig, FrameworkError>
Apply changes to the config after it’s been loaded, e.g. overriding values in a config file using command-line options.
This can be safely deleted if you don’t want to override config settings from command-line options.
Source§impl Debug for CargoMoveCmd
impl Debug for CargoMoveCmd
Source§impl Options for CargoMoveCmd
impl Options for CargoMoveCmd
Source§fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
Parses arguments until the given parser is exhausted or until
an error is encountered.
Source§fn command_name(&self) -> Option<&'static str>
fn command_name(&self) -> Option<&'static str>
Returns the name of a parsed command, if present. Read more
Source§fn help_requested(&self) -> bool
fn help_requested(&self) -> bool
Returns whether the user supplied a “help” option to request
usage information about the program or any contained subcommands. Read more
Source§fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>,
) -> Result<Self, Error>
fn parse_command<__S: AsRef<str>>( name: &str, _parser: &mut Parser<'_, __S>, ) -> Result<Self, Error>
Parses options for the named command.
Source§fn usage() -> &'static str
fn usage() -> &'static str
Returns a string showing usage and help for each supported option. Read more
Source§fn command_list() -> Option<&'static str>
fn command_list() -> Option<&'static str>
Returns a string listing available commands and help text. Read more
Source§fn command_usage(name: &str) -> Option<&'static str>
fn command_usage(name: &str) -> Option<&'static str>
Returns a usage string for the named command. Read more
Source§fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>
fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>
Parses arguments received from the command line. Read more
Source§fn parse_args_or_exit(style: ParsingStyle) -> Self
fn parse_args_or_exit(style: ParsingStyle) -> Self
Parses arguments from the environment. Read more
Source§fn parse_args_default_or_exit() -> Self
fn parse_args_default_or_exit() -> Self
Parses arguments from the environment, using the default parsing style. Read more
Auto Trait Implementations§
impl Freeze for CargoMoveCmd
impl RefUnwindSafe for CargoMoveCmd
impl Send for CargoMoveCmd
impl Sync for CargoMoveCmd
impl Unpin for CargoMoveCmd
impl UnsafeUnpin for CargoMoveCmd
impl UnwindSafe for CargoMoveCmd
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