MCPcopy
hub / github.com/shelljs/shelljs / cmdAsync

Function cmdAsync

test/cmd.js:234–240  ·  view source on GitHub ↗
(...commandArgs)

Source from the content-addressed store, hash-verified

232//
233
234function cmdAsync(...commandArgs) {
235 return new Promise((resolve) => {
236 shell.cmd(...commandArgs, (code, stdout, stderr) => {
237 resolve({ code, stdout, stderr });
238 });
239 });
240}
241
242// TODO(nfischer): enable after we implement async.
243test.skip('no callback', t => {

Callers 1

cmd.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…