Check if the claude CLI is available on PATH.
(&self)
| 193 | |
| 194 | /// Check if the claude CLI is available on PATH. |
| 195 | pub fn is_available(&self) -> bool { |
| 196 | Command::new(self.claude_path()) |
| 197 | .arg("--version") |
| 198 | .stdout(std::process::Stdio::null()) |
| 199 | .stderr(std::process::Stdio::null()) |
| 200 | .status() |
| 201 | .is_ok() |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | impl Default for ClaudeCliGenerator { |
no test coverage detected