anki-code / xontrib-pipeliner

Let your pipe lines flow thru the Python code in xonsh.
BSD 2-Clause "Simplified" License
56 stars 5 forks source link

Pipeline that takes full stream #5

Open singpolyma opened 2 years ago

singpolyma commented 2 years ago

Would be nice if there was a mode where lambda argument instead of line-by-line was a file object for the whole input stream.

anki-code commented 2 years ago

Hi @singpolyma! It looks useful. PR is welcome! You can start from copying the _pl function and read all stdin before calling the fn.