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

Function load_config_with_remote

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

Loads config including remote `.well-known/opencode` endpoints. Use this in async contexts where you want the full config with remote sources.

(project_dir: P)

Source from the content-addressed store, hash-verified

1332/// Loads config including remote `.well-known/opencode` endpoints.
1333/// Use this in async contexts where you want the full config with remote sources.
1334pub async fn load_config_with_remote<P: AsRef<Path>>(project_dir: P) -> Result<Config> {
1335 let mut loader = ConfigLoader::new();
1336 loader.load_all_with_remote(project_dir).await
1337}
1338
1339/// Update project-level config by merging a patch.
1340pub fn update_config(project_dir: &Path, patch: &Config) -> Result<()> {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
load_all_with_remoteMethod · 0.80

Tested by

no test coverage detected