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

Function runBinary

freebuff/cli/smoke-test.test.ts:71–77  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

69const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms))
70
71function runBinary(args: string[]): string {
72 return execFileSync(BINARY_PATH, args, {
73 encoding: 'utf-8',
74 timeout: 10_000,
75 env: { ...process.env, NO_COLOR: '1' },
76 })
77}
78
79const binaryExists = existsSync(BINARY_PATH)
80const tmuxAvailable = isTmuxAvailable()

Callers 1

smoke-test.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected