Skip to content
Myr

script.js

This file

Path

lib/script.js

15 lines · 644 bytes · JavaScript

Last changed by

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

History of this file

Take it

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

lines 1–3why, one step back
1export const setScriptSync = (boundExeca, createNested, boundOptions) => {
2 boundExeca.sync = createNested(mapScriptSync, boundOptions);3 boundExeca.s = boundExeca.sync;

Split files (#791)ehmickybefore adoption932fb26

lines 4–5why, one step back
4};
5

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

lines 6–7why, one step back
6export const mapScriptAsync = ({options}) => getScriptOptions(options);
7const mapScriptSync = ({options}) => ({...getScriptOptions(options), isSync: true});

`.pipe()` shortcut for `$` (#840)ehmickybefore adoption316f562

line 8why, one step back
8

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

line 9why, one step back
9const getScriptOptions = options => ({options: {...getScriptStdinOption(options), ...options}});

Split files (#791)ehmickybefore adoption932fb26

line 10why, one step back
10

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

line 11why, one step back
11const getScriptStdinOption = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined

Split files (#837)ehmickybefore adoption672c2d7

lines 12–13why, one step back
12 ? {stdin: 'inherit'}
13 : {};

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

lines 14–15why, one step back
14
15export const deepScriptOptions = {preferLocal: true};