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

Function execSync

packages/cli/src/utils/exec-utils.ts:7–16  ·  view source on GitHub ↗
(cmd: string, options?: Omit<ExecSyncOptions, 'env'> & { env?: Record<string, string> })

Source from the content-addressed store, hash-verified

5 * Utility for executing command synchronously and prints outputs on current console
6 */
7export function execSync(cmd: string, options?: Omit<ExecSyncOptions, 'env'> & { env?: Record<string, string> }): void {
8 const { env, ...restOptions } = options ?? {};
9 const mergedEnv = env ? { ...process.env, ...env } : undefined;
10 _exec(cmd, {
11 encoding: 'utf-8',
12 stdio: options?.stdio ?? 'inherit',
13 env: mergedEnv,
14 ...restOptions,
15 });
16}
17
18/**
19 * Utility for running package commands through npx/bunx

Callers 15

runFunction · 0.90
getMachineIdFunction · 0.85
typeCheckFunction · 0.85
runCliFunction · 0.85
getMachineIdFunction · 0.85
execPackageFunction · 0.85
execPrismaFunction · 0.85
generateSchemaFunction · 0.85
verifySchemaFunction · 0.85
initProjectFunction · 0.85
runCommandFunction · 0.85

Calls

no outgoing calls

Tested by 3

typeCheckFunction · 0.68
generateSchemaFunction · 0.68
verifySchemaFunction · 0.68