keytool 0.1.0

A command-line tool for managing certificates, similar to Java keytool.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::commands::command::Cmd;
use crate::error::KeyToolError;
use clap::Args;

#[derive(Args, Debug, Clone)]
pub struct PrintCertCmd {
    /// Alias name of the certificate
    #[arg(long)]
    pub alias: String,
}

impl Cmd for PrintCertCmd {
    fn run(&self) -> Result<(), KeyToolError> {
        println!("执行 printcert 命令,参数: {:?}", self);
        Ok(())
    }
}