main: Include Notes module

This commit is contained in:
Matthias Beyer 2016-01-02 19:14:29 +01:00
parent db7a4abbd8
commit d68d0088e8

View file

@ -25,6 +25,7 @@ pub mod ui;
pub mod util; pub mod util;
pub use module::bm::BM; pub use module::bm::BM;
pub use module::notes::Notes;
fn main() { fn main() {
let yaml = load_yaml!("../etc/cli.yml"); let yaml = load_yaml!("../etc/cli.yml");
@ -43,10 +44,11 @@ fn main() {
debug!("Runtime : {:?}", &rt); debug!("Runtime : {:?}", &rt);
if let Some(matches) = rt.config.cli_matches.subcommand_matches("bm") { let res = match rt.config.cli_matches.subcommand_name() {
let res = BM::new(&rt).exec(matches); Some("bm") => BM::new(&rt).exec(rt.config.cli_matches.subcommand_matches("bm").unwrap()),
info!("BM exited with {}", res); Some("notes") => Notes::new(&rt).exec(rt.config.cli_matches.subcommand_matches("notes").unwrap()),
} else { _ => false,
info!("No commandline call...") };
}
info!("Module execution ended with {}", res);
} }