1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use promptis::Input;

fn main() {
    let keyword = "quit";
    println!(
        "Enter the phrase '{}' to close the application early!",
        keyword
    );

    let _ = Input::new()
        .quit(keyword)
        .prompt("Enter: ")
        .wait::<String>();
    println!("Exiting normally - goodbye!");
}