MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / runCommand

Function runCommand

gulpfile.js:41–50  ·  view source on GitHub ↗
(command, args)

Source from the content-addressed store, hash-verified

39}
40
41function runCommand(command, args) {
42 return new Promise((resolve, reject) => {
43 const child = spawn(command, args, {
44 stdio: 'inherit',
45 });
46 child.on('close', (code, signal) => {
47 (code ? reject : resolve)(signal);
48 });
49 });
50}
51
52async function manifest() {
53 const base = JSON.parse(await fs.readFile(`${DIST}/manifest.json`, 'utf8'));

Callers 2

jsDevFunction · 0.85
jsProdFunction · 0.85

Calls 1

onMethod · 0.80

Tested by

no test coverage detected