greymd / teip

Masking tape to help commands "do one thing well"
MIT License
569 stars 19 forks source link

using teip as xin #58

Open nkh opened 1 year ago

nkh commented 1 year ago

Hi, nice work

I'd like to use tape as xin.

https://github.com/mike-douglas/xin

I tried: seq 10 | teip -- 'wc -l'

Which I though would have that effect but instead showed me the help. Is it possible?

greymd commented 1 year ago

I think teip works as same as xin. Is it expected behavior for you?

$ seq 10 | teip -s -g . -- wc -l
       1
       1
       1
       1
       1
       1
       1
       1
       1
       1
nkh commented 1 year ago

Right, my bad, -s is needed.

But note that I didn't get "teip: Output of targeted command has been exhausted" because I also made the mistake to not pass any "masking" regexp.

I think that it would be very helpful to write what the error is rather then displaying the help.