From 30e1e3a13dc19c47afc517d1178e1dbf5b401596 Mon Sep 17 00:00:00 2001 From: syn Date: Sun, 9 Feb 2020 19:17:57 +0300 Subject: timeout'ed waiter for process --- src/main.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 57f8529..1621e1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,10 +2,11 @@ extern crate lazy_static; use clap::{ AppSettings, App, Arg }; use env_logger; -use log::{ trace, error }; +use log::{ error }; mod conf; mod backends; +mod wait; fn main() { let matches = App::new("evr") @@ -42,13 +43,17 @@ fn main() { let result = if src_path.exists() { - config.run(&src_path) + config.run( + &src_path, + matches.is_present("time"), + matches.is_present("mem") + ) } else { config.make(&src_path) }; match result { - Ok(_) => trace!("ok"), + Ok(_) => {}, Err(err) => error!("{}", err) } } -- cgit v1.2.1-18-gbd029