use crate::commands::command::Cmd;
use crate::error::KeyToolError;
use clap::Args;
#[derive(Args, Debug, Clone)]
pub struct ExportCertCmd {
/// Alias name of the certificate to export
#[arg(long)]
pub alias: String,
/// Output file name
#[arg(long)]
pub file: Option<String>,
/// Export format (e.g., DER, PEM)
#[arg(long)]
pub r#type: Option<String>,
}
impl Cmd for ExportCertCmd {
fn run(&self) -> Result<(), KeyToolError> {
println!("执行 exportcert 命令,参数: {:?}", self);
Ok(())
}
}