Load managed config files from enterprise directory (highest priority).
(&mut self)
| 233 | |
| 234 | /// Load managed config files from enterprise directory (highest priority). |
| 235 | fn load_managed_config(&mut self) -> Result<()> { |
| 236 | let managed_dir = get_managed_config_dir(); |
| 237 | if managed_dir.exists() { |
| 238 | for ext in &["opencode.jsonc", "opencode.json"] { |
| 239 | let path = managed_dir.join(ext); |
| 240 | self.load_from_file(&path)?; |
| 241 | } |
| 242 | } |
| 243 | Ok(()) |
| 244 | } |
| 245 | |
| 246 | pub fn config(&self) -> &Config { |
| 247 | &self.config |
no test coverage detected