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