-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Add support for displaying versions in list command #5987
Conversation
Adds a '--versions' switch to 'brew cask list' that shows the versions of installed Casks.
Thanks! We would like to match Homebrew semantics whenever possible. The only reason I haven't merged this yet is that I intend to update the man page. |
The one problem I see with this implementation is that it lists latest rather than installed versions, so it differs with its homebrew counterpart. |
Oh right, and we don't provide an interface to that information yet. This PR would match Homebrew's syntax, but not Homebrew's semantics. It will be a number of weeks until we add the relevant functionality, but on the other hand it is merely weeks. Let's leave this PR open? |
@federicobond You are absolutely right, I was unsure of how to handle self-updating casks. @rolandwalker Does that mean that Cask will be able to infer versions of self-updating casks? That would be awesome! Either way, I happy to leave this for now and revisit in a few weeks. |
@Anvar It's technically possible (and it wouldn't be a Cask-specific sort of thing). Versions are labeled in a rather clear and well-standardized format within Mac app bundles, unlike apps in Windows (.exe) and Linux (miscellaneous binary formats). |
@Anvar yes, although there are three different version numbers
We have been taking about reading version numbers from the app bundle since #260, but now it is the subject of active work, especially wrt self-updating apps: #3105, #4847, #4412, and many more. We are also changing the spelling of the It will be a while until all these changes come to fruition in the interface, but we are reorganizing the code and Casks to support these features. |
That sounds great, thanks for the update! |
Future planned features would render this useless, so closing. |
Adds a
--versions
switch tobrew cask list
that shows theversions of installed Casks.
Uses the same flag as Homebrew does, see
brew list --versions [formulae]