feat: rename test -> sample, add logo

This commit is contained in:
2020-11-22 22:44:55 +08:00
parent 3504bd9a6d
commit 79df9405a1
4 changed files with 33 additions and 11 deletions

17
src/cmd_sample.rs Normal file
View File

@@ -0,0 +1,17 @@
use clap::{ArgMatches, SubCommand, App};
use crate::cmd::{Command, CommandError};
pub struct CommandImpl;
impl Command for CommandImpl {
fn name(&self) -> &str { "sample" }
fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name()).about("Sample subcommand")
}
fn run(&self, _arg_matches: &ArgMatches, _sub_arg_matches: &ArgMatches) -> CommandError {
Ok(())
}
}