Function
getScriptStdinOption
({input, inputFile, stdio})
Source from the content-addressed store, hash-verified
| 14 | const getScriptOptions = options => ({options: {...getScriptStdinOption(options), ...options}}); |
| 15 | |
| 16 | const getScriptStdinOption = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined |
| 17 | ? {stdin: 'inherit'} |
| 18 | : {}; |
| 19 | |
| 20 | // When using $(...).pipe(...), most script-friendly options should apply to both commands. |
| 21 | // However, some options (like `stdin: 'inherit'`) would create issues with piping, i.e. cannot be deep. |
Tested by
no test coverage detected