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

Method from_config

crates/opencode-agent/src/agent.rs:472–476  ·  view source on GitHub ↗
(config: &LoadedConfig)

Source from the content-addressed store, hash-verified

470 }
471
472 pub fn from_config(config: &LoadedConfig) -> Self {
473 let mut registry = Self::new();
474 registry.apply_config(config);
475 registry
476 }
477
478 pub fn from_optional_config(config: Option<&LoadedConfig>) -> Self {
479 if let Some(config) = config {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
apply_configMethod · 0.80

Tested by

no test coverage detected