Trait leetcode_cli::cmds::Command
source · [−]pub trait Command {
fn usage<'a>() -> ClapCommand<'a>;
fn handler<'life0, 'async_trait>(
m: &'life0 ArgMatches
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait;
}
Expand description
Abstract commands’ trait.
Required Methods
fn usage<'a>() -> ClapCommand<'a>
fn usage<'a>() -> ClapCommand<'a>
Usage of the specific command
Implementors
impl Command for DataCommand
impl Command for EditCommand
impl Command for ExecCommand
impl Command for ListCommand
implement Command trait for list