-
Notifications
You must be signed in to change notification settings - Fork 463
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
Adds the ability to specify sorting options for groups. #807
Adds the ability to specify sorting options for groups. #807
Conversation
Thanks! can you add a changelog entry and some tests? |
I was looking around the repo at some example tests, and it looks like there is decent coverage for the sort functionality already. Is there an example I can look at for testing the actual command options and such? My only changes are command file. |
Ah looks like |
What would the objectives of these tests be? (Sorry, I'm new to ruby) I can see that the I tried looking for examples of specs for any of the commands under |
The new tests should test the fact that anyone can pass in the new parameters you added in |
Might take a while for me to investigate how to write these tests. I have 0 Ruby experience, so if anyone else wants to contribute, that would be amazing. Otherwise, I'll get around to it in my free time. |
@dnkoutso Managed to get a friend with some Ruby knowledge to add some tests. 🥳 |
The
sort
command doesn't allow the user to specify how they want their project sorted. Instead, groups and files are sorted alphabetically and interleaved with each other.Xcodeproj already supports the ability to sort with groups above or below files, but the functionality is not exposed to the cli command.
This PR simply exposes that functionality with a new option.