()
| 55 | } |
| 56 | |
| 57 | pub fn check_gh_cli_installed() -> Result<(), git2::Error> { |
| 58 | let output = std::process::Command::new("gh").arg("--version").output(); |
| 59 | match output { |
| 60 | Ok(output) if output.status.success() => Ok(()), |
| 61 | _ => { |
| 62 | eprintln!("The GitHub CLI (gh) is not installed or not found in the PATH."); |
| 63 | eprintln!("Please install it from https://cli.github.com/ and ensure it's available in your PATH."); |
| 64 | process::exit(1); |
| 65 | } |
| 66 | } |
| 67 | } |
no outgoing calls
no test coverage detected