lizmat / App-Rak

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

Not call `meh()` from `rak()` #6

Closed FCO closed 2 years ago

FCO commented 2 years ago

Would it be better to not call meh() from inside rak()? meh() calls exit and that wouldn’t make it possible to a user using rak() on its own module or code to handle that. Could it be an exception?

lizmat commented 2 years ago

Good point! :-)

lizmat commented 2 years ago

Actually, I'm thinking of makingrak return a Supply, and instead of say emit to that. Would that make sense?

lizmat commented 2 years ago

Version 0.39 now on zef. It still calls meh, but will die instead of exit if called as rak (well, if the $*REAL-MEH environment variable isn't set, but that's an implementation detail).