IsInstalled reports whether the tool's CLI binary is reachable via PATH.
(tool Tool)
| 148 | |
| 149 | // IsInstalled reports whether the tool's CLI binary is reachable via PATH. |
| 150 | func IsInstalled(tool Tool) bool { |
| 151 | bin := tool.LaunchCommand() |
| 152 | if bin == "" { |
| 153 | return false |
| 154 | } |
| 155 | _, err := exec.LookPath(bin) |
| 156 | return err == nil |
| 157 | } |
| 158 | |
| 159 | // Detect reports whether the tool's CLI binary is on PATH and, when installed, |
| 160 | // its version string in a single pass. Version detection is skipped for missing |
nothing calls this directly
no test coverage detected