keytool 0.1.0

A command-line tool for managing certificates, similar to Java keytool.
Documentation
use crate::commands::command::Cmd;
use crate::error::KeyToolError;
use clap::Args;

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

    /// New password for the key
    #[arg(long)]
    pub newpass: String,
}

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