Trait leetcode_cli::cmds::Command [−][src]
pub trait Command {
fn usage<'a, 'c>() -> App<'a, 'c>;
#[must_use]
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;
}Abstract commands’ trait.
Required methods
fn usage<'a, 'c>() -> App<'a, 'c>[src]
Usage of the spefic command
#[must_use]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]
#[must_use]
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,
The handler will deal [args, options,…] from the command-line
Implementors
impl Command for DataCommand[src]
impl Command for DataCommand[src]impl Command for EditCommand[src]
impl Command for EditCommand[src]impl Command for ExecCommand[src]
impl Command for ExecCommand[src]impl Command for ListCommand[src]
impl Command for ListCommand[src]implement Command trait for list
fn usage<'a, 'list>() -> App<'a, 'list>[src]
list command usage
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]
impl Command for PickCommand[src]impl Command for StatCommand[src]
impl Command for StatCommand[src]impl Command for TestCommand[src]
impl Command for TestCommand[src]