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

Function run

__tests__/cli-sync-stale-index.test.ts:14–21  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

12let root: string;
13
14function run(...args: string[]) {
15 return spawnSync(process.execPath, [BIN, ...args], {
16 cwd: root,
17 encoding: 'utf8',
18 timeout: 30_000,
19 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NODE_NO_WARNINGS: '1', NO_COLOR: '1' },
20 });
21}
22
23function setStamp(stamp: number | null) {
24 const db = new DatabaseSync(path.join(root, '.codegraph', 'codegraph.db'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected