requestty 0.6.3

An easy-to-use collection of interactive cli prompts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    let question = requestty::Question::float("number")
        .message("What is your favourite number?")
        .validate(|num, _| {
            if num.is_finite() {
                Ok(())
            } else {
                Err("Please enter a finite number".to_owned())
            }
        })
        .build();

    println!("{:#?}", requestty::prompt_one(question));
}