MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / getRipgrepPath

Function getRipgrepPath

projects/electron/src/modules/code/files.ts:215–222  ·  view source on GitHub ↗

* Check if ripgrep is available in PATH

()

Source from the content-addressed store, hash-verified

213 * Check if ripgrep is available in PATH
214 */
215async 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.

Callers 2

getFileListFunction · 0.85
handleContentSearchFunction · 0.85

Calls 1

execCmdFunction · 0.85

Tested by

no test coverage detected