use crate::{Config, Result};
#[derive(clap::Args)]
pub struct Args {
#[arg(short, long)]
profile: String,
#[arg(short, long)]
arn: String,
#[arg(short, long)]
secret: String,
}
pub fn run(config: Config, args: &Args) -> Result<()> {
let Args {
profile,
arn,
secret,
} = args;
config.set(profile, arn, secret).save()?;
println!("Saved MFA device for profile \"{profile}\" successfully.");
Ok(())
}