* Check if ripgrep is available in PATH
()
| 213 | * Check if ripgrep is available in PATH |
| 214 | */ |
| 215 | async function getRipgrepPath(): Promise<string | null> { |
| 216 | // First check system PATH |
| 217 | const whichResult = await execCmd(process.platform === "win32" ? "where" : "which", ["rg"]) |
| 218 | if (whichResult.success) { |
| 219 | return whichResult.stdout.trim().split("\n")[0] |
| 220 | } |
| 221 | return null |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Get the managed ripgrep path from the binary manager. |
no test coverage detected