use anyhow::Result;
use bc_components::SymmetricKey;
use bc_envelope::prelude::*;
use clap::Args;

/// Generate a symmetric encryption key.
#[derive(Debug, Args)]
#[group(skip)]
pub struct CommandArgs {}

impl crate::Exec for CommandArgs {
    fn exec(&self) -> Result<String> {
        let key = SymmetricKey::new();
        Ok(key.ur_string())
    }
}
