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

Function execCmd

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

* Execute a command using centralized subprocess runner * Uses execCommand to respect user-configured env vars (e.g., custom PATH)

(cmd: string, args: string[], cwd?: string)

Source from the content-addressed store, hash-verified

124 * Uses execCommand to respect user-configured env vars (e.g., custom PATH)
125 */
126async function execCmd(cmd: string, args: string[], cwd?: string): Promise<{ stdout: string; stderr: string; success: boolean }> {
127 return execCommand(cmd, args, { cwd, maxBuffer: 50 * 1024 * 1024 })
128}
129
130function readFileSampleSync(filePath: string, size: number): Uint8Array {
131 if (size <= 0) return new Uint8Array()

Callers 7

isGitRepoFunction · 0.85
getGitRootFunction · 0.85
getGitRelativePathFunction · 0.85
listFilesWithGitFunction · 0.85
getRipgrepPathFunction · 0.85
listFilesWithRipgrepFunction · 0.85
handleContentSearchFunction · 0.85

Calls 1

execCommandFunction · 0.90

Tested by

no test coverage detected