operator | method

Script operator |(
  1. Script script
)

Pipes this into script's stdin with newlines baked in.

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 |(Script script) => bytes | script;