-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
commands: filter out dotfiles from output #3334
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
Conversation
|
not all dot files? |
|
I can if you want? Just thought this was the only one that seemed likely to end up inside a |
|
It will currently list e.g. |
|
Alright. One sec. |
|
How about Pathname.glob(directory/"*")
.select(&:file?)
.map { |f| f.basename.to_s.sub(/\.(?:rb|sh)$/, "") }? |
|
I don't have a major objection if people prefer that format. Whatever folks are happy with. I am not a huge fan of chaining together across multiple lines like that but it's become a common enough thing I can't really start complaining about it now 😄. |
|
I find it easier to follow than a |
|
@ilovezfs Any objections? Keen to avoid getting in the middle of a maintainer disagreement over style. I don't miss those 😅. |
Use a more typical Ruby style.
|
Thanks @DomT4 and @reitermarkus! |
|
Thanks for merging Mike. Was trying to give ILZ a little bit to see if he had any objections, but I'm assuming we're good. |
|
LGTM. Thanks, Mr. T |
brew testswith your changes locally?Noticed in this that
DS_Storewas getting chucked in with the commands list 🤷♂️.