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

Function load_config

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

Loads config synchronously (without remote wellknown fetching).

(project_dir: P)

Source from the content-addressed store, hash-verified

1325
1326/// Loads config synchronously (without remote wellknown fetching).
1327pub fn load_config<P: AsRef<Path>>(project_dir: P) -> Result<Config> {
1328 let mut loader = ConfigLoader::new();
1329 loader.load_all(project_dir)
1330}
1331
1332/// Loads config including remote `.well-known/opencode` endpoints.
1333/// Use this in async contexts where you want the full config with remote sources.

Callers 15

sync_mcp_from_diskFunction · 0.85
list_agentsFunction · 0.85
load_plugin_auth_storeFunction · 0.85
run_chat_sessionFunction · 0.85
list_modelsFunction · 0.85
show_configFunction · 0.85
handle_agent_commandFunction · 0.85
create_lsp_clientFunction · 0.85
handle_debug_commandFunction · 0.85
choose_github_modelFunction · 0.85
generate_agent_responseFunction · 0.85

Calls 2

newFunction · 0.85
load_allMethod · 0.45

Tested by

no test coverage detected