use crate::commands::command::Cmd;
use crate::error::KeyToolError;
use clap::Args;
#[derive(Args, Debug, Clone)]
pub struct CertReqCmd {
/// Alias name of the key
#[arg(long)]
pub alias: String,
/// File to save the CSR
#[arg(long)]
pub file: Option<String>,
/// Signature algorithm
#[arg(long)]
pub sigalg: Option<String>,
/// Distinguished name for CSR
#[arg(long)]
pub dname: Option<String>,
}
impl Cmd for CertReqCmd {
fn run(&self) -> Result<(), KeyToolError> {
println!("执行 certreq 命令,参数: {:?}", self);
Ok(())
}
}