Adds a new .pipe(...) method for piping one command to another. The critical part of this is that .pipe(...) returns the provided command and not the original command. This allows for chaining multiple commands together like so:
const result = const lineCount = await $`echo 1 && echo 2`
.pipe($`wc -l`)
.text(); // text of the result of wc -l
...however, it gets confusing about what command someone is acting on when both .stdout and stderr are set and it becomes ambiguous about what the return value of those methods are.
Adds a new
.pipe(...)
method for piping one command to another. The critical part of this is that.pipe(...)
returns the provided command and not the original command. This allows for chaining multiple commands together like so:I was initially thinking this should be:
...however, it gets confusing about what command someone is acting on when both
.stdout
andstderr
are set and it becomes ambiguous about what the return value of those methods are.Closes #137