diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/question.rs | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/examples/question.rs b/examples/question.rs new file mode 100644 index 0000000..d9c0e91 --- /dev/null +++ b/examples/question.rs @@ -0,0 +1,12 @@ +// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +// SPDX-License-Identifier: MIT + +use std::io::Result; + +use dialog::DialogBox; + +fn main() -> Result<()> { +    let choice = dialog::Question::new("Do you want to continue?").show()?; +    println!("The user chose: {:?}", choice); +    Ok(()) +} | 
