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

Function runScript

catboost/node-package/build_scripts/bootstrap.js:22–37  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

20}
21
22function runScript(script) {
23 process.chdir('..');
24
25 const child = childProcess.fork('./build_scripts/out/' + script + '.js', process.argv);
26 return new Promise((resolve, reject) => {
27 child.on('error', err => reject({err}));
28 child.on('exit', (code, signal) => {
29 if (code !== 0) {
30 console.error(`Script failed with exit code: ${code}`);
31 reject(code);
32 return;
33 }
34 resolve({code, signal});
35 });
36 });
37}
38
39function runCommand(command) {
40 if (command === 'bootstrap') {

Callers 1

runCommandFunction · 0.85

Calls 2

resolveFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected