search: add separate flag for formulae#7094
Conversation
|
Great work here @vidusheeamoli, you're off to a fantastic start! I think it'd be great to get this PR to a point where Additionally, CI is failing here so when you make your next changes run Thanks again! |
|
Thank you for the feedback @MikeMcQuaid! 😃
Forgive me for the silly question, but does this mean that Edit: On thinking about it, i've realised that this implementation will give more clarity as compared to the current scenario.
Sure thing! I will also be adding tests for my changes. :) |
Yep!
Perhaps but I think if
Exactly!
Cool! Tests aren't required but if you do add them don't make more |
a500508 to
a3d81be
Compare
|
Hello @MikeMcQuaid! I've incorporated all the discussed changes; and here is what brew search looks like now: Edit: Here is a screenshot for you: I've also decided to add tests in a separate PR (if that's okay with you?) and I'll be working on it soon. The changes have been tested locally on my system as well. Please let me know if you have any questions regarding the edge cases. Looking forward to your feedback! Thank you. 😃 |
I think this is the bit that should only list formulae. Otherwise: sounds good! |
Oh, this is already incorporated, only the comment is wrong. 😛 Also, addressing rest of the reviews right now. Thank you @MikeMcQuaid ! 😄 |
a3d81be to
10ba0d5
Compare
49ec84d to
4ae2bed
Compare
|
Sorry for the delay, a brew style test had failed earlier. Thank you for your patience @MikeMcQuaid! 😃 |
5c6e1ca to
9aa6142
Compare
9aa6142 to
8bdb82c
Compare
8bdb82c to
67d012a
Compare
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Looks good!
Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @vidusheeamoli!
|
Resolves #6761. |

brew stylewith your changes locally?brew testswith your changes locally?This PR attempts to solve issue #6975.
Right now, this PR has a lot of scope for improvement, but I am determined to get this done right and merged. As discussed in the above issue I have added a separate
--formulaeflag in brew search and this is what brew search looks like now:I have tested these changes locally, and they seem to work so far.
In this version of implementation,
brew searchfirst lists all cask names(sorted) followed by sorted formula names. Is this correct, or should I mix all cask and formula names in a list and then print this list in a sorted manner (this would mix all cask and formula names).Thank you, @issyl0 for telling me such a convenient way to test out my changes locally -- it saved me a lot of time! Please take a look and let me know. 😃
Thanks! 🚀