diff --git a/src/module/todo/mod.rs b/src/module/todo/mod.rs index 072b8a87..617413ab 100644 --- a/src/module/todo/mod.rs +++ b/src/module/todo/mod.rs @@ -1,25 +1,36 @@ use runtime::Runtime; use module::Module; +use module::ModuleResult; use std::path::Path; -use std::error::Error; +use std::result::Result; pub struct TodoModule { path: Option, } +const CALLNAMES : &'static [&'static str] = &[ "todo" ]; + impl Module for TodoModule { - fn new(&rt : Runtime) -> TodoModule { + fn new(rt : &Runtime) -> TodoModule { TodoModule { path: None } } - fn name(&self) -> String { - "Todo".to_string() + fn callnames() -> &'static [&'static str] { + CALLNAMES } - fn execute(&self, rt : &Runtime) -> Option { - ( ) + fn name(&self) -> &'static str{ + "Todo" + } + + fn execute(&self, rt : &Runtime) -> ModuleResult { + Ok(()) + } + + fn shutdown(&self, rt : &Runtime) -> ModuleResult { + Ok(()) } }