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-11-30 17:33:13 +00:00
|
|
|
pub trait Module : Debug {
|
2015-12-20 11:43:57 +00:00
|
|
|
fn new(rt: &Runtime) -> Self;
|
|
|
|
fn exec(&self, matches: &ArgMatches) -> bool;
|
2015-10-19 15:54:32 +00:00
|
|
|
}
|
|
|
|
|