Loads config synchronously (without remote wellknown fetching).
(project_dir: P)
| 1325 | |
| 1326 | /// Loads config synchronously (without remote wellknown fetching). |
| 1327 | pub 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. |
no test coverage detected