MCPcopy Create free account
hub / github.com/catboost/catboost / execProcess

Function execProcess

catboost/node-package/build_scripts/common.ts:9–21  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

7};
8
9export function execProcess(command: string): Promise<ExecutionResult> {
10 const child = spawn(command, [], { shell: true });
11 return new Promise(resolve => {
12 child.stdout.on('data', chunk => {
13 console.log(chunk.toString());
14 });
15 child.stderr.on('data', chunk => {
16 console.error(chunk.toString());
17 });
18 child.on('error', err => resolve({err}));
19 child.on('exit', (code, signal) => resolve({code, signal}));
20 });
21}

Callers 7

testFunction · 0.90
buildE2ETestImageFunction · 0.90
runE2EContainerTestFunction · 0.90
compileTypeScriptFunction · 0.90
compileNativeAddonFunction · 0.90
configureGypFunction · 0.90

Calls 5

spawnFunction · 0.85
resolveFunction · 0.85
logMethod · 0.80
toStringMethod · 0.45
errorMethod · 0.45

Tested by 1

testFunction · 0.72