MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getRgPath

Function getRgPath

cli/src/native/ripgrep.ts:67–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65let rgPathPromise: Promise<string> | null = null
66
67export const getRgPath = (): Promise<string> => {
68 if (!rgPathPromise) {
69 rgPathPromise = getRipgrepPath()
70 }
71 return rgPathPromise
72}
73
74/**
75 * Reset the cached ripgrep path promise.

Callers 1

getCodebuffClientFunction · 0.90

Calls 1

getRipgrepPathFunction · 0.85

Tested by

no test coverage detected