MCPcopy Create free account
hub / github.com/Azure/static-web-apps-cli / execFileCommand

Function execFileCommand

src/core/utils/command.ts:17–29  ·  view source on GitHub ↗
(command: string, cwd?: string, args?: string[])

Source from the content-addressed store, hash-verified

15}
16
17export function execFileCommand(command: string, cwd?: string, args?: string[]) {
18 const child = execFileSync(command, args, {
19 stdio: "inherit",
20 cwd: cwd ?? process.cwd(),
21 // Set CI to avoid extra NPM logs and potentially unwanted interactive modes
22 env: {
23 ...process.env,
24 // Internal flag to avoid duplicating user messages
25 SWA_CLI_INTERNAL_COMMAND: "1",
26 },
27 });
28 return child;
29}

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…