MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getBinPath

Function getBinPath

src/services/ripgrep/index.ts:116–121  ·  view source on GitHub ↗
(vscodeAppRoot: string)

Source from the content-addressed store, hash-verified

114 * Returns `undefined` when ripgrep cannot be located.
115 */
116export async function getBinPath(vscodeAppRoot: string): Promise<string | undefined> {
117 for (const candidate of ripgrepCandidatePaths(vscodeAppRoot)) {
118 if (await fileExistsAtPath(candidate)) return candidate
119 }
120 return undefined
121}
122
123async function execRipgrep(bin: string, args: string[]): Promise<string> {
124 return new Promise((resolve, reject) => {

Callers 5

executeRipgrepFunction · 0.90
getRipgrepDiagnosticFunction · 0.90
index.spec.tsFile · 0.90
getRipgrepPathFunction · 0.90
regexSearchFilesFunction · 0.85

Calls 2

fileExistsAtPathFunction · 0.90
ripgrepCandidatePathsFunction · 0.85

Tested by

no test coverage detected