MCPcopy
hub / github.com/shelljs/shelljs / execAsync

Function execAsync

test/exec.js:222–228  ·  view source on GitHub ↗
(...execArgs)

Source from the content-addressed store, hash-verified

220//
221
222function execAsync(...execArgs) {
223 return new Promise((resolve) => {
224 shell.exec(...execArgs, (code, stdout, stderr) => {
225 resolve({ code, stdout, stderr });
226 });
227 });
228}
229
230test('no callback', t => {
231 const c = shell.exec(`${JSON.stringify(shell.config.execPath)} -e "console.log(1234)"`, { async: true });

Callers 1

exec.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…