diff --git a/src/types/root_config.rs b/src/types/root_config.rs index 759d66b..f426c1d 100644 --- a/src/types/root_config.rs +++ b/src/types/root_config.rs @@ -95,6 +95,10 @@ impl RootConfig { self.mods.insert(new_mod.id().to_owned(), new_mod.clone()); } + pub fn instances(&self) -> Vec { + self.instances.keys().cloned().collect() + } + pub fn load_instance_by_id(&self, id: &str) -> Result { debug!("Loading instance {}", id); let conf = self