aboutsummaryrefslogtreecommitdiff
path: root/examples/question.rs
blob: d9c0e9157227d5936cfcea11c5703c18e8cfc2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
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(())
}