XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.66k stars 122 forks source link

Add select option to install #182

Closed tahirmt closed 1 year ago

tahirmt commented 2 years ago

Adds options --select and --update to install command.

Details

rogerluan commented 1 year ago

@tahirmt thank you for this PR! This makes total sense to me πŸ’―

@MattKiazyk this would also be aligned with https://github.com/xcpretty/xcode-install/issues/467, since xcode-install's default behavior automatically selects the Xcode version that was just installed, and it would be a huge improvement over xcode-install and xcodes if we could also optionally run update automatically right before installing (otherwise Xcode versions that exist might not be found). I had to work-around this behavior implementing a "pre-install update" behavior here but it'd be great if it was built-in into xcodes ☺️

I'll review this PR to help move it forward πŸ’ͺ

rogerluan commented 1 year ago

@tahirmt since https://github.com/RobotsAndPencils/xcodes/pull/181 got merged, would you mind rebasing this branch or merging the main branch into this one? πŸ™‡