Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

[][src]Trait leetcode_cli::cmds::Command

pub trait Command {
    fn usage<'a, 'c>() -> App<'a, 'c>;
fn handler(m: &ArgMatches); }

Abstract commands' traits.

Required methods

fn usage<'a, 'c>() -> App<'a, 'c>

Usage of the spefic command

fn handler(m: &ArgMatches)

The handler will deal [args, options,...] from the command-line

Loading content...

Implementors

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)[src]

list command handler List commands contains "algorithm", "database", and "shell" methods.

because of...leetcode content these three categories.

Loading content...