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

/// Generate a Number Used Once (Nonce).
#[derive(Debug, Args)]
#[group(skip)]
pub struct CommandArgs {}

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