summaryrefslogtreecommitdiff
path: root/examples/question.rs
blob: f5a692a6b95b7d8b05214c9fecb3fdbe7c618970 (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT

use dialog::DialogBox;

fn main() -> dialog::Result<()> {
    let choice = dialog::Question::new("Do you want to continue?").show()?;
    println!("The user chose: {:?}", choice);
    Ok(())
}