pwgen2 0.8.2

password generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use pwgen2::cli::{actions, actions::Action, start};

#[tokio::main]
async fn main() {
    let action = start();

    let result = match action {
        Action::GeneratePassword { .. } | Action::GenerateMnemonic { .. } => {
            actions::run::handle(action).await
        }
    };

    if let Err(err) = result {
        eprintln!("Error: {err}");
        std::process::exit(1);
    }
}