({value, input}, optionName)
| 98 | |
| 99 | // The `{value, input}` object form wraps any stdio value with an explicit direction. |
| 100 | const initializeStdioValueObject = ({value, input}, optionName) => { |
| 101 | checkBooleanOption(input, `${optionName}.input`); |
| 102 | |
| 103 | return { |
| 104 | type: getStdioItemType(value, optionName), |
| 105 | value, |
| 106 | direction: input ? 'input' : undefined, |
| 107 | optionName, |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | const validateStdioArray = (stdioItems, isStdioArray, optionName) => { |
| 112 | if (stdioItems.length === 0) { |
no test coverage detected