2015-12-05 00:14:13 +00:00
|
|
|
use std::collections::HashMap;
|
2015-10-24 15:46:01 +00:00
|
|
|
use std::error::Error;
|
2015-12-05 00:14:13 +00:00
|
|
|
use std::fmt::{Debug, Display, Formatter};
|
2015-10-24 16:40:40 +00:00
|
|
|
use std::fmt::Result as FMTResult;
|
|
|
|
use std::result::Result;
|
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-12-05 00:14:13 +00:00
|
|
|
use runtime::Runtime;
|
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
|
|
|
}
|
|
|
|
|