//mod misc; mod parser; use std::env; fn main() { // def env variables. let svdir_env = env::var("SVDIR"); let svwait_env = env::var("SVWAIT"); let svdir_var = match svdir_env { Ok(var) => var, Err(..) => "/run/runit/service".to_string(), }; let svwait_var = match svwait_env { Ok(env) => match env.parse::() { Ok(var) => var, Err(..) => 7, }, Err(..) => 7, }; dbg!(svdir_var); dbg!(svwait_var); // run the parser let args: Vec = env::args().collect(); let arg_parser: Vec = parser::parse_args(args); dbg!(arg_parser); // TODO: Interpret the flags given if some are given. // TODO: Set the command if it is given // TODO: Exec the command on all given services. }