(home: &Path, tracedecay_bin: &str)
| 367 | } |
| 368 | |
| 369 | fn install_codex_cached_plugin(home: &Path, tracedecay_bin: &str) -> Result<PathBuf> { |
| 370 | let target = codex_plugin_current_cached_install_dir(home); |
| 371 | install_codex_plugin_bundle(&target, tracedecay_bin, InstallScope::Global, home)?; |
| 372 | for stale_dir in codex_plugin_cached_install_dirs(home) { |
| 373 | if stale_dir != target { |
| 374 | remove_codex_plugin_install(&stale_dir)?; |
| 375 | } |
| 376 | } |
| 377 | Ok(target) |
| 378 | } |
| 379 | |
| 380 | fn install_codex_repo_plugin(home: &Path, project_path: &Path, tracedecay_bin: &str) -> Result<()> { |
| 381 | let install_dir = codex_repo_plugin_install_dir(project_path); |
no test coverage detected