renamed command setup to health

This commit is contained in:
2023-03-06 16:55:19 +01:00
parent 48f0a44eaa
commit 791ea08462
7 changed files with 194 additions and 59 deletions

View File

@@ -2,12 +2,12 @@ use std::collections::HashMap;
use traits::Command;
use self::{build::Build, setup::Setup};
use self::{build::Build, health::Health};
pub mod traits;
pub mod executions;
mod build;
mod setup;
mod health;
pub struct CommandRegistry {
commands: HashMap<String, Box<dyn Command>>
@@ -18,7 +18,7 @@ impl CommandRegistry {
pub fn register_all(&mut self) {
let registry = self;
registry.register("/build".to_string(), Box::new(Build::new()), true);
registry.register("/setup".to_string(), Box::new(Setup::new()), true);
registry.register("/health".to_string(), Box::new(Health::new()), true);
}