2015-12-30 21:46:40 +00:00
|
|
|
use std::fmt::Debug;
|
2015-10-19 15:54:32 +00:00
|
|
|
|
2015-12-05 00:23:06 +00:00
|
|
|
use clap::ArgMatches;
|
2015-11-28 10:54:27 +00:00
|
|
|
|
2015-10-25 18:56:04 +00:00
|
|
|
pub mod bm;
|
2015-12-05 15:03:05 +00:00
|
|
|
pub mod helpers;
|
2015-10-19 15:54:32 +00:00
|
|
|
|
2015-12-29 15:55:28 +00:00
|
|
|
/**
|
|
|
|
* Module interface, each module has to implement this.
|
|
|
|
*/
|
2015-12-20 12:26:14 +00:00
|
|
|
pub trait Module<'a> : Debug {
|
2015-12-20 11:43:57 +00:00
|
|
|
fn exec(&self, matches: &ArgMatches) -> bool;
|
2015-12-20 12:26:14 +00:00
|
|
|
fn name(&self) -> &'static str;
|
2015-10-19 15:54:32 +00:00
|
|
|
}
|
|
|
|
|