Reimplement commands for bm
This commit is contained in:
parent
24a6e961af
commit
e10d1bcb65
1 changed files with 8 additions and 86 deletions
|
@ -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 impl ExecutableCommand for AddCommand {
|
||||
|
||||
fn get_callname() -> &'static str {
|
||||
"add"
|
||||
}
|
||||
|
||||
fn exec<'a>(&self, env: CommandEnv<'a>) -> CommandResult
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
use runtime::Runtime;
|
||||
|
||||
pub fn add_command(rt: &Runtime) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
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
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
pub fn list_command(rt: &Runtime) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
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
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
pub fn remove_command(rt: &Runtime) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue