(path: &Path)
| 394 | } |
| 395 | |
| 396 | fn uninstall_hooks_at(path: &Path) -> AgentResult<()> { |
| 397 | if !path.exists() { |
| 398 | return Ok(()); |
| 399 | } |
| 400 | let mut config = read_hooks_file(path)?; |
| 401 | remove_atomic_hooks(&mut config.hooks); |
| 402 | write_hooks_file(path, &config) |
| 403 | } |
| 404 | |
| 405 | fn read_hooks_file(path: &Path) -> AgentResult<CodexHooksFile> { |
| 406 | if !path.exists() { |
no test coverage detected