main: Include Notes module
This commit is contained in:
parent
db7a4abbd8
commit
d68d0088e8
1 changed files with 8 additions and 6 deletions
14
src/main.rs
14
src/main.rs
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue