[−][src]Trait leetcode_cli::cmds::Command
Abstract commands' traits.
Required methods
fn usage<'a, 'c>() -> App<'a, 'c>
Usage of the spefic command
fn handler(m: &ArgMatches) -> Result<(), Error>
The handler will deal [args, options,...] from the command-line
Implementors
impl Command for CacheCommand
[src]
fn usage<'a, 'cache>() -> App<'a, 'cache>
[src]
cache
command usage
fn handler(m: &ArgMatches) -> Result<(), Error>
[src]
cache
handler
impl Command for ListCommand
[src]
implement Command trait for list
fn usage<'a, 'list>() -> App<'a, 'list>
[src]
list
command usage
fn handler(m: &ArgMatches) -> Result<(), Error>
[src]
list
command handler
List commands contains "-c", "-q", "-s" flags.
+ matches with -c
will override the default -qs
impl Command for PickCommand
[src]
fn usage<'a, 'pick>() -> App<'a, 'pick>
[src]
pick
usage
fn handler(m: &ArgMatches) -> Result<(), Error>
[src]
pick
handler