1// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> 2// SPDX-License-Identifier: MIT 3 4use dialog::DialogBox; 5 6fn main() -> dialog::Result<()> { 7 let choice = dialog::Question::new("Do you want to continue?").show()?; 8 println!("The user chose: {:?}", choice); 9 Ok(()) 10}