feat: rename test -> sample, add logo
This commit is contained in:
17
src/cmd_sample.rs
Normal file
17
src/cmd_sample.rs
Normal 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(())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user