MCPcopy Index your code
hub / github.com/zenstackhq/zenstack / runCommand

Function runCommand

packages/create-zenstack/src/index.ts:126–135  ·  view source on GitHub ↗
(cmd: string, status: string, stdio: StdioOptions = 'ignore')

Source from the content-addressed store, hash-verified

124}
125
126function runCommand(cmd: string, status: string, stdio: StdioOptions = 'ignore') {
127 const spinner = ora(status).start();
128 try {
129 execSync(cmd, { stdio });
130 spinner.succeed();
131 } catch (e) {
132 spinner.fail();
133 throw e;
134 }
135}
136
137function createVsCodeConfig() {
138 fs.mkdirSync('.vscode', { recursive: true });

Callers 2

initProjectFunction · 0.85
installPackageFunction · 0.85

Calls 1

execSyncFunction · 0.85

Tested by

no test coverage detected