12 use std::convert::TryFrom;
14 use error::{Error, Result};
15 use evaluator::Evaluator;
17 fn main() -> crate::Result<()> {
18 let matches = cli::get_matches();
19 let command = cli::Command::try_from(matches)?;
20 Evaluator::evaluate(command)
23 // fn main() -> crate::Result<()> {
24 // let dialog = dialogs::Confirmation::new("Do you want to overwrite 'FILE'?", Some("FILE"));
26 // match dialog.ask(Some("file.tar.gz"))? {
27 // true => println!("deleting"),
28 // false => println!("keeping")