MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / run

Function run

__tests__/cli-version.test.ts:24–32  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

22).version as string;
23
24function run(args: string[]): string {
25 return execFileSync(process.execPath, [BIN, ...args], {
26 encoding: 'utf-8',
27 // Skip the daemon and the wasm-flag re-exec so the command resolves in a
28 // single fast process (no graph work happens for a version print anyway).
29 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' },
30 stdio: ['ignore', 'pipe', 'pipe'],
31 }).trim();
32}
33
34describe('codegraph version affordances', () => {
35 for (const spelling of ['version', '-v', '-version', '--version', '-V']) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected