diff --git a/src/app/commands/mod.rs b/src/app/commands/mod.rs index 3e424bf..6d3eea7 100644 --- a/src/app/commands/mod.rs +++ b/src/app/commands/mod.rs @@ -2,11 +2,12 @@ use std::collections::HashMap; use traits::Command; -use self::build::Build; +use self::{build::Build, setup::Setup}; pub mod traits; pub mod executions; mod build; +mod setup; pub struct CommandRegistry { commands: HashMap> @@ -16,7 +17,9 @@ impl CommandRegistry { pub fn register_all(&mut self) { let registry = self; - registry.register("/build".to_string(), Box::new(Build::new()), true) + registry.register("/build".to_string(), Box::new(Build::new()), true); + registry.register("/setup".to_string(), Box::new(Setup::new()), true); + } pub fn register(&mut self, path: String, command: Box, enabled: bool) { diff --git a/src/app/commands/setup.rs b/src/app/commands/setup.rs index 41e500e..d60359e 100644 --- a/src/app/commands/setup.rs +++ b/src/app/commands/setup.rs @@ -6,6 +6,7 @@ pub struct Setup; impl Command for Setup { fn execute(&self, _args: &HashMap) -> Result<(), String> { + println!("setting up"); return Ok(()) }