dialoguer 0.6.0

A command line prompting library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate dialoguer;

use dialoguer::{theme::ColorfulTheme, Password};

fn main() {
    let password = Password::with_theme(&ColorfulTheme::default())
        .with_prompt("Password")
        .with_confirmation("Repeat password", "Error: the passwords don't match.")
        .interact()
        .unwrap();
    println!("Your password is {} characters long", password.len());
}