17 lines
420 B
Rust
17 lines
420 B
Rust
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(())
|
|
}
|
|
} |