Add select option to install by tahirmt · Pull Request #182 · XcodesOrg/xcodes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking of a use case where on CI you want to ensure that a certain Xcode version is installed. So you could do xcodes install x.x.x --select --update. If it's already installed you would expect it to be selected.

So with all of these options if we try to select first, we exit super early by just selecting the version. But if we don't, it will first update the list, then see that it is already installed and select it. The list update will always happen even if Xcode was already installed and it wasn't needed. If that's the behavior you prefer I can remove it.