summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2020-02-09 19:17:57 +0300
committersyn <isaqtm@gmail.com>2020-02-09 19:17:57 +0300
commit30e1e3a13dc19c47afc517d1178e1dbf5b401596 (patch)
treeb57b23cb10d468325bc259e05dfb6901b9b56f59 /src/main.rs
parentdf090c4c8caa0632ce1fa802faf8752c2c861517 (diff)
downloadevr-30e1e3a13dc19c47afc517d1178e1dbf5b401596.tar.gz
timeout'ed waiter for process
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 8 insertions, 3 deletions
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)
}
}