(path: &Path)
| 408 | } |
| 409 | |
| 410 | fn uninstall_hooks_at(path: &Path) -> AgentResult<()> { |
| 411 | if !path.exists() { |
| 412 | return Ok(()); |
| 413 | } |
| 414 | let mut config = read_hooks_file(path)?; |
| 415 | remove_atomic_hooks(&mut config.hooks); |
| 416 | write_hooks_file(path, &config) |
| 417 | } |
| 418 | |
| 419 | fn read_hooks_file(path: &Path) -> AgentResult<CodexHooksFile> { |
| 420 | if !path.exists() { |
no test coverage detected