operator | method

Script operator |(
  1. Object script
)

Pipes this into script's stdin.

The other must be either a Script or an object that can be converted into a script using the Script.fromByteTransformer and Script.fromLineTransformer constructors.

This works like Script.pipe, treating this stream as a process that emits only stdout. If this emits an error, it's treated the same as an unhandled Dart error in a Script.capture block: it's printed to stderr and the virtual stream process exits with error code 257.

Implementation

Script operator |(Object script) => _asScript | script;