awsmfa 0.3.2

The automation tool for Multi-Factor Authentication (MFA) process to use awscli.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{MfaConfig, Result};

#[derive(clap::Args)]
pub struct Args {
    /// Profile name
    #[arg(short, long)]
    profile: String,
}

pub fn run(config: MfaConfig, args: &Args) -> Result<()> {
    let Args { profile } = args;
    config.remove(profile).save()?;
    println!("Remove the secret key for profile \"{profile}\" successfully.");
    Ok(())
}