make Table, Autoview read in memory config. (#3287)

This commit is contained in:
Andrés N. Robalino
2021-04-08 17:31:19 -05:00
committed by GitHub
parent 81160bcefb
commit a7274115d0
4 changed files with 91 additions and 77 deletions

View File

@ -24,6 +24,13 @@ impl ConfigHolder {
}
}
pub fn global_config(&self) -> NuConfig {
match &self.global_config {
Some(config) => config.clone(),
None => NuConfig::default(),
}
}
pub fn add_local_cfg(&mut self, cfg: NuConfig) {
self.local_configs.push(cfg);
}