({mapArguments, deepOptions = {}, boundOptions = {}, setBoundExeca, createNested}, firstArgument, ...nextArguments)
| 28 | }; |
| 29 | |
| 30 | const callBoundExeca = ({mapArguments, deepOptions = {}, boundOptions = {}, setBoundExeca, createNested}, firstArgument, ...nextArguments) => { |
| 31 | if (isPlainObject(firstArgument)) { |
| 32 | return createNested(mapArguments, mergeOptions(boundOptions, firstArgument), setBoundExeca); |
| 33 | } |
| 34 | |
| 35 | const {file, commandArguments, options, isSync} = parseArguments({ |
| 36 | mapArguments, |
| 37 | firstArgument, |
| 38 | nextArguments, |
| 39 | deepOptions, |
| 40 | boundOptions, |
| 41 | }); |
| 42 | return isSync |
| 43 | ? execaCoreSync(file, commandArguments, options) |
| 44 | : execaCoreAsync(file, commandArguments, options, createNested); |
| 45 | }; |
| 46 | |
| 47 | const parseArguments = ({mapArguments, firstArgument, nextArguments, deepOptions, boundOptions}) => { |
| 48 | const callArguments = isTemplateString(firstArgument) |
no test coverage detected