(&self, force: bool)
| 126 | } |
| 127 | |
| 128 | pub fn install_global(&self, force: bool) -> AgentResult<usize> { |
| 129 | let path = Self::global_hooks_path().ok_or_else(|| AgentError::ConfigError { |
| 130 | operation: "resolve".to_string(), |
| 131 | path: PathBuf::from("~/.codex/hooks.json"), |
| 132 | reason: "Could not determine home directory for Codex hooks".to_string(), |
| 133 | })?; |
| 134 | install_hooks_at(&path, force) |
| 135 | } |
| 136 | |
| 137 | pub fn uninstall_global(&self) -> AgentResult<()> { |
| 138 | if let Some(path) = Self::global_hooks_path() { |
no test coverage detected