(path: &Path)
| 359 | } |
| 360 | |
| 361 | fn uninstall_hooks_at(path: &Path) -> AgentResult<()> { |
| 362 | if !path.exists() { |
| 363 | return Ok(()); |
| 364 | } |
| 365 | let mut config = read_hooks_file(path)?; |
| 366 | remove_atomic_hooks(&mut config.hooks); |
| 367 | write_hooks_file(path, &config) |
| 368 | } |
| 369 | |
| 370 | fn read_hooks_file(path: &Path) -> AgentResult<CodexHooksFile> { |
| 371 | if !path.exists() { |
no test coverage detected