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)
| 1332 | /// Loads config including remote `.well-known/opencode` endpoints. |
| 1333 | /// Use this in async contexts where you want the full config with remote sources. |
| 1334 | pub 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. |
| 1340 | pub fn update_config(project_dir: &Path, patch: &Config) -> Result<()> { |
nothing calls this directly
no test coverage detected