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

Method from_project_dir

crates/opencode-agent/src/agent.rs:485–490  ·  view source on GitHub ↗
(project_dir: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

483 }
484
485 pub fn from_project_dir(project_dir: impl AsRef<Path>) -> Self {
486 match load_config(project_dir) {
487 Ok(config) => Self::from_config(&config),
488 Err(_) => Self::new(),
489 }
490 }
491
492 fn apply_config(&mut self, config: &LoadedConfig) {
493 if let Some(mode_configs) = &config.mode {

Callers

nothing calls this directly

Calls 3

load_configFunction · 0.85
from_configFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected