[−][src]Trait leetcode_cli::cmds::Command
Abstract commands' trait.
Required methods
pub fn usage<'a, 'c>() -> App<'a, 'c>[src]
Usage of the spefic command
#[must_use]pub fn handler<'life0, 'life1, 'async_trait>(
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait, [src]
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
The handler will deal [args, options,...] from the command-line
Implementors
impl Command for DataCommand[src]
pub fn usage<'a, 'cache>() -> App<'a, 'cache>[src]
data command usage
pub fn handler<'life0, 'life1, 'async_trait>(
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait, [src]
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
data handler
impl Command for EditCommand[src]
pub fn usage<'a, 'edit>() -> App<'a, 'edit>[src]
edit usage
pub fn handler<'life0, 'life1, 'async_trait>(
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait, [src]
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
edit handler
impl Command for ExecCommand[src]
pub fn usage<'a, 'edit>() -> App<'a, 'edit>[src]
exec usage
pub fn handler<'life0, 'life1, 'async_trait>(
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait, [src]
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
exec handler
impl Command for ListCommand[src]
implement Command trait for list
pub fn usage<'a, 'list>() -> App<'a, 'list>[src]
list command usage
pub fn handler<'life0, 'life1, 'async_trait>(
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
list command handler
List commands contains "-c", "-q", "-s" flags.
+ matches with -c will override the default -qs
impl Command for PickCommand[src]
pub fn usage<'a, 'pick>() -> App<'a, 'pick>[src]
pick usage
pub fn handler<'life0, 'life1, 'async_trait>(
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pick handler
impl Command for StatCommand[src]
pub fn usage<'a, 'stat>() -> App<'a, 'stat>[src]
stat usage
pub fn handler<'life0, 'life1, 'async_trait>(
_m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait, [src]
_m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
stat handler