( )
| 2422 | } |
| 2423 | |
| 2424 | fn build_runtime_plugin_state( |
| 2425 | ) -> Result<(runtime::RuntimeFeatureConfig, GlobalToolRegistry), Box<dyn std::error::Error>> { |
| 2426 | let cwd = env::current_dir()?; |
| 2427 | let loader = ConfigLoader::default_for(&cwd); |
| 2428 | let runtime_config = loader.load()?; |
| 2429 | let plugin_manager = build_plugin_manager(&cwd, &loader, &runtime_config); |
| 2430 | let tool_registry = GlobalToolRegistry::with_plugin_tools(plugin_manager.aggregated_tools()?)?; |
| 2431 | Ok((runtime_config.feature_config().clone(), tool_registry)) |
| 2432 | } |
| 2433 | |
| 2434 | fn build_plugin_manager( |
| 2435 | cwd: &Path, |
no test coverage detected