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 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 fn add_command(rt: &Runtime) {
unimplemented!()
}
pub fn list_command(rt: &Runtime) {
unimplemented!()
}
pub impl ExecutableCommand for AddCommand {
fn get_callname() -> &'static str {
"add"
pub fn remove_command(rt: &Runtime) {
unimplemented!()
}
fn exec<'a>(&self, env: CommandEnv<'a>) -> CommandResult
{
}
}
}
mod list {
use clap::ArgMatches;
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 {
use clap::ArgMatches;
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
{
}
}
}