|
|
|
|
|
by arihant
4042 days ago
|
|
A lot of comments here comparing it with grep or some other native CLI. I think this fares better at least on three metrics: 1. Fun to build.
2. Output looks prettier.
3. Easier to add more syntactic stuff as edge cases for different languages are factored in. Won't be too hard to extend it for github issues, for example. Since there would be very few cases of partial matches of "TODO" I think grep would still be much faster. |
|
2. $ alias grep="grep --color"
3. it would be even easier to extend grep via pipes. Plus pipes are langauge agnostic where as extending this tool requires knowledge of Python
As a personal project, this is fine. But I really don't see the point in anyone else using it when it's slower than existing tools, no more user friendly, requires more dependancies, and isn't part of the default install like grep and find (Windows CLI) are. Plus this tool doesn't even support all instances where a TODO might appear (https://github.com/pgilad/leasot#comment-format) nor all programming languages (https://github.com/pgilad/leasot#supported-languages) like grep and find do.