forked from extern/nushell
make Table, Autoview read in memory config. (#3287)
This commit is contained in:
committed by
GitHub
parent
81160bcefb
commit
a7274115d0
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user