MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / load_managed_config

Method load_managed_config

crates/opencode-config/src/loader.rs:235–244  ·  view source on GitHub ↗

Load managed config files from enterprise directory (highest priority).

(&mut self)

Source from the content-addressed store, hash-verified

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

Callers 1

load_allMethod · 0.80

Calls 3

get_managed_config_dirFunction · 0.85
existsMethod · 0.80
load_from_fileMethod · 0.45

Tested by

no test coverage detected