@arcsine/nodesh
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -18,8 +18,8 @@ "use strict"; | ||
}, | ||
async *exec(cmd, args = [], output = 'line') { | ||
async *exec(cmd, args = [], outMode = 'line', inMode = outMode) { | ||
const { proc, result } = exec_1.ExecUtil.exec(cmd, [...args]); | ||
this.stream().pipe(proc.stdin); | ||
yield* stream_1.StreamUtil.readStream(proc.stdout, output); | ||
this.stream(inMode).pipe(proc.stdin); | ||
yield* stream_1.StreamUtil.readStream(proc.stdout, outMode); | ||
await result; | ||
} | ||
}); |
{ | ||
"name": "@arcsine/nodesh", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
79119