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 ShowInfoCmd {
    /// Detail level
    #[arg(long)]
    pub verbose: bool,
}

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