feat: register works

This commit is contained in:
2021-06-26 15:42:47 +08:00
parent 53371c5a18
commit c3a903173c
7 changed files with 589 additions and 14 deletions

14
src/sign.rs Normal file
View File

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