MCPcopy
hub / github.com/sindresorhus/execa / nestedSubprocess

Function nestedSubprocess

test/helpers/nested.js:15–19  ·  view source on GitHub ↗
(file, commandArguments, options, parentOptions)

Source from the content-addressed store, hash-verified

13// When `options.isSync` is `true`, `execaSync()` is called instead.
14// When `options.worker` is `true`, the whole flow happens inside a Worker.
15export const nestedSubprocess = async (file, commandArguments, options, parentOptions) => {
16 const result = await nestedInstance(file, commandArguments, options, parentOptions);
17 const nestedResult = result.ipcOutput[0];
18 return {...result, nestedResult};
19};
20
21export const nestedInstance = (file, commandArguments, options, parentOptions) => {
22 [commandArguments, options = {}, parentOptions = {}] = Array.isArray(commandArguments)

Callers 15

testInheritNoBufferFunction · 0.90
testFd3InheritOutputFunction · 0.90
testOverflowStreamFunction · 0.90
runErrorSubprocessFunction · 0.90
runWarningSubprocessFunction · 0.90
runEarlyErrorSubprocessFunction · 0.90
runVerboseSubprocessFunction · 0.90
testNoOutputOptionsFunction · 0.90
testNoOutputDynamicFunction · 0.90
testNoOutputStreamFunction · 0.90
testStdoutFileFunction · 0.90

Calls 1

nestedInstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…