xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.58k stars 237 forks source link

filter xcversion list by range of versions #426

Open Pe-te opened 3 years ago

Pe-te commented 3 years ago

Hi, I'd like to always have all versions from Xcode 10 upwards installed, so I use this regex to find the missing ones:

xcversion list | grep -E '^[0-9]{2,}(.[0-9]+)*$'

But it would be really great, if we could have those as parameters for the list command instead:

rogerluan commented 3 years ago

I like this a lot! Perhaps using semantic versioning to compare versions 👌

Feel free to submit a pull request to implement this improvement 👍

Pe-te commented 3 years ago

Feel free to submit a pull request to implement this improvement 👍

Awesome, my ruby-fu is just not strong enough. 😢 Hopefully someone can make this happen.

Pe-te commented 2 years ago

As far as I understand the code, Tony Li added the missing option? How do we get it into master?

rogerluan commented 2 years ago

@Pe-te , we'd need a PR to be open containing @crazytonyli's changes so we can review, test and merge them 😊

crazytonyli commented 2 years ago

FYI, I've opened a PR here: https://github.com/xcpretty/xcode-install/pull/438