MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / execute

Function execute

gulpfile.util.js:4–11  ·  view source on GitHub ↗
(command, callback)

Source from the content-addressed store, hash-verified

2const { exec } = require('child_process');
3
4const execute = (command, callback) => {
5 const child = exec(command);
6 child.stderr.on('data', data => { process.stdout.write(data); });
7 child.stdout.on('data', data => { process.stdout.write(data); });
8 if (callback) {
9 child.once('exit', () => { callback(); });
10 }
11};
12
13exports.execute = execute;

Callers 5

installTaskFunction · 0.70
buildTaskFunction · 0.70
watchTaskFunction · 0.70
watchBackFunction · 0.70
buildBackFunction · 0.70

Calls 3

callbackFunction · 0.85
onMethod · 0.65
onceMethod · 0.65

Tested by

no test coverage detected