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

Automatically call `update` if `list` is old #202

Closed AllDmeat closed 1 year ago

AllDmeat commented 2 years ago

Xcodes currently automatically updates when list is called only when it doesn't have the list already

https://github.com/RobotsAndPencils/xcodes/blob/main/Sources/XcodesKit/XcodeList.swift#L16

This should be smarter, and be updated so that if the latest availableXcodes is older then 24 hours, automatically update itself.

Original request below:


Screenshot 2022-06-07 at 10 45 37

version 0.20.0

tomassliz commented 2 years ago

Did you try to call xcodes update? Because I see both of these Xcodes versions.

AllDmeat commented 2 years ago

That helped, thanks. Didn't even think I have to manually update the list to see new entries.

tomassliz commented 2 years ago

Great! I agree that it's not very ergonomic and easy to use - update at first and install afterwards.

AllDmeat commented 2 years ago

Have you considered auto-update when executing xcodes list?

MattKiazyk commented 1 year ago

@AllDmeat Updated the title and description to use this issue as a feature - to be smarter on when we update the list.