Replies: 1 comment 1 reply
|
https://sh.readthedocs.io/en/latest/sections/faq.html#why-not-use-to-pipe-commands |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Look at this code:
It introduces 2 small features. One is making Command.__getitem__ as a syntax sugar for .bake(), another is overriding Command.__or__ to make piping possible. As a result, we made it possible to have plumbum-style piping in sh!
Maybe it won't work in all cases, and I didn't think of every possible situation. But it's interesting proof of concept. If the project allows such "magic" in it, one or both features can be added.
All reactions