MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / runCli

Function runCli

packages/cli/test/utils.ts:118–121  ·  view source on GitHub ↗
(command: string, cwd: string)

Source from the content-addressed store, hash-verified

116}
117
118export function runCli(command: string, cwd: string) {
119 const cli = path.join(__dirname, '../dist/index.mjs');
120 execSync(`node ${cli} ${command}`, { cwd });
121}

Callers 11

format.test.tsFile · 0.90
init.test.tsFile · 0.90
generate.test.tsFile · 0.90
check.test.tsFile · 0.90
migrate.test.tsFile · 0.90
db.test.tsFile · 0.90
pull.test.tsFile · 0.90
push.test.tsFile · 0.90

Calls 1

execSyncFunction · 0.85

Tested by

no test coverage detected