-
-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --directories to allow for outputting summaries per directory #426
Comments
Thank you for issue! I remember when I implemented |
That's why I thought it's perhaps a good idea to just implement it for exactly the directory you provide as arguments. So essentially a sum per dir. I don't thinking showing the dirs recursively will serve well but they should of course be traversed for the line counts themselves. |
I just came here to ask for the same feature, I think. Showing the counts for the top-level directories would work for me. My workaround is |
👋 @lnicola :-) One specific use-case for this feature -- in rust-analyzer, I want to run |
I think the idea was rather more something like That would be very tremendously useful to compare or collate multiple directories. The one difficulty would be what happens when providing overlapping paths (e.g. My gut feeling would be that a |
Currently we have
--files
which allows for outputting line counts per files but I'd like it per top level directory. Imaginetokei --directories *
which would output summaries for lines for each provided directory.The text was updated successfully, but these errors were encountered: