Cameron Cordes
42d6211bc2
Fix warnings
Core Repos/Rack/pipeline/head There was a failure building this commit
2021-02-15 20:12:23 -05:00
Cameron Cordes
5bc72ec67d
Add Rayon for parallel file checking
...
Core Repos/Rack/pipeline/head There was a failure building this commit
Now we're almost entirely IO bound, rather than having to wait to
read and search through files one at a time.
2021-02-15 20:08:52 -05:00
Cameron Cordes
827aad57dc
Use our own struct instead of accumulating DirEntrys
...
DirEntry keeps a handle to an open file, so keeping a reference to them
while traversing a large directory, such as a home directory, can
trigger a too many open files error.
2021-02-15 20:06:45 -05:00
Cameron Cordes
e899cd2648
Use depth first search for files
2021-02-15 18:06:53 -05:00
Cameron Cordes
4ef70979bc
Move app to its own module
...
Moved blocks into their own functions and made a small public api.
2021-02-13 22:45:24 -05:00
Cameron Cordes
eaf9994cd4
Remove unnecessary Box::leak
2020-08-27 16:09:09 -04:00
Cameron Cordes
c371dd1edd
Use is_empty instead of length > 0
Core Repos/Rack/pipeline/head This commit looks good
Core Repos/Rack/pipeline/pr-master This commit looks good
2020-06-17 14:34:41 -04:00
Cameron Cordes
276db68727
Fix lint issues
2020-05-22 16:17:03 -04:00
Cameron Cordes
a403dbda76
Omit files and print only match options added
...
These are essential for using the tool for scripting purposes.
2020-05-20 17:54:46 -04:00
Cameron Cordes
1229c05d8d
Add basic gitignore functionality
...
No support for wildcards and exact matches might screw up nested
directories. The Globbing functionality seems like its going to be a
pain to properly match up.
2020-05-20 17:36:30 -04:00
Cameron Cordes
ee3e61b76d
Extract most shared logic into SimplePrinter
...
This should hopefully allow for more command line options, like no
color, omitting line number and file names for better scriptability.
2020-05-19 23:23:15 -04:00
Cameron Cordes
263dad91da
Organize code into separate files
2020-05-19 22:44:26 -04:00
Cameron Cordes
0daa2f4149
Ignore case and allowing the user to specify a path
...
Also ran rustfmt over the code.
2020-05-19 18:20:48 -04:00
Cameron Cordes
0dc8383d2e
Fix massive memory allocation issue
...
Not exactly sure what was going on, other than cloning of the FileMatch
with its results, since it is recursive I believe this blew up the
stack/heap with unnecessary allocations. By using an iterator and filter
this seemed to greatly reduce memory use and improve speed.
2020-05-19 18:19:18 -04:00
Cameron Cordes
e1aa96dd78
Match highlighting and better colors in report
2020-05-19 15:17:09 -04:00
Cameron Cordes
b73e4d38f1
Initial commit
...
Still getting Config and argument parsing setup.
2020-04-26 23:18:40 -04:00