Reimplement commands for bm

This commit is contained in:
Matthias Beyer 2015-11-28 11:09:50 +01:00
parent 24a6e961af
commit e10d1bcb65

View file

@ -1,92 +1,14 @@
mod add { use runtime::Runtime;
use clap::ArgMatches;
use module::command::{CommandError, CommandResult, CommandEnv, ExecutableCommand};
use runtime::Runtime;
use storage::backend::{StorageBackend, StorageBackendError};
pub struct AddCommand;
pub impl AddCommand {
fn new() -> AddCommand {
AddCommand
}
}
pub impl ExecutableCommand for AddCommand {
fn get_callname() -> &'static str {
"add"
}
fn exec<'a>(&self, env: CommandEnv<'a>) -> CommandResult
{
}
}
pub fn add_command(rt: &Runtime) {
unimplemented!()
} }
mod list { pub fn list_command(rt: &Runtime) {
use clap::ArgMatches; unimplemented!()
use module::command::{CommandError, CommandResult, CommandEnv, ExecutableCommand};
use runtime::Runtime;
use storage::backend::{StorageBackend, StorageBackendError};
pub struct ListCommand;
pub impl ListCommand {
fn new() -> ListCommand {
ListCommand
}
}
pub impl ExecutableCommand for ListCommand {
fn get_callname() -> &'static str {
"list"
}
fn exec<'a>(&self, env: CommandEnv<'a>) -> CommandResult
{
}
}
} }
mod remove { pub fn remove_command(rt: &Runtime) {
use clap::ArgMatches; unimplemented!()
use module::command::{CommandError, CommandResult, CommandEnv, ExecutableCommand};
use runtime::Runtime;
use storage::backend::{StorageBackend, StorageBackendError};
pub struct RemoveCommand;
pub impl RemoveCommand {
fn new() -> RemoveCommand {
RemoveCommand
}
}
pub impl ExecutableCommand for RemoveCommand {
fn get_callname() -> &'static str {
"remove"
}
fn exec<'a>(&self, env: CommandEnv<'a>) -> CommandResult
{
}
}
} }