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

@( ) inconsistent #3

Open ixemad opened 3 years ago

ixemad commented 3 years ago

Hi!

I'm playing with xonsh and this contrib is really useful to leverage it.

I detected some inconsistencies with the experimental feature @(). The following can help polish it.

The ls | pl @( line ) works as it's expected but not ls | pl @( line.upper() ). However, ls | pl @( (lambda l: l.upper())(line) ) does.

anki-code commented 3 years ago

Hi @ixemad! Thank you for catching this! PR with fix is welcome! If you like the contrib please star the repo to put it to the trends and get more attention from xonsh maintainers and folks.