MCPcopy
hub / github.com/streamich/git-cz / executeCommand

Function executeCommand

lib/cli.js:14–25  ·  view source on GitHub ↗
(command, env = process.env)

Source from the content-addressed store, hash-verified

12
13// eslint-disable-next-line no-process-env
14const executeCommand = (command, env = process.env) => {
15 const proc = spawn(command, [], {
16 env,
17 shell: true,
18 stdio: [0, 1, 2]
19 });
20
21 proc.on('close', (code) => {
22 // eslint-disable-next-line no-process-exit
23 process.exit(code);
24 });
25};
26
27// eslint-disable-next-line complexity
28const main = async () => {

Callers 1

mainFunction · 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…