lizmat / App-Rak

21st century grep / find / ack / ag / rg on steroids
Artistic License 2.0
152 stars 7 forks source link

Error with --count-only when using a pipe #28

Closed Zer0-Tolerance closed 1 year ago

Zer0-Tolerance commented 1 year ago

Another small bug:

lsof -Pni | rak node --count-only
Type check failed in binding to parameter '<anon>'; expected IO::Path but got IO::Handle (IO::Handle.new(path ...).

where using it against a file works as expected:

rak --count-only 1 /tmp/test.csv
2 matches in 1 files
lizmat commented 1 year ago

Thanks for the report!

Fixed with https://github.com/lizmat/App-Rak/commit/6a62bba77c

Will be in the next release.