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