Skip to content
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

Highlight or mark installed versions when running asdf list all <name> #1152

Open
MitchellCash opened this issue Jan 6, 2022 · 2 comments
Open

Comments

@MitchellCash
Copy link

Is your feature request related to a problem? Please describe

When I run asdf list all <name> it is useful for me to compare my installed versions against the list of available versions.

For example, I currently have installed nodejs versions 14.18.1 and 16.13.1. I run asdf list all nodejs to see if there is a new minor or patch version bump for one of my installed major versions (i.e. 14.x.x or 16.x.x).

I don't always remember exactly what versions I have installed and want an easy way to visually understand that 14.18.2 is now available for me to install and 16.13.1 is still the latest.

Describe the proposed solution

Something like:

$ asdf list all nodejs
...
14.18.0
14.18.1 (installed)   <-- either differentiate with text or colour highlight it
14.18.2
...
16.13.0
16.13.1 (installed)   <-- either differentiate with text or colour highlight it
lts-gallium
...

Describe similar asdf features and why they are not sufficient

Running asdf list <name> and then asdf list all <name> is cumbersome.

Describe other workarounds you've considered

As above, running asdf list <name> and then asdf list all <name> is cumbersome and can mean scrolling back and forth to compare the two lists.

@roele
Copy link

roele commented Mar 31, 2022

That would come in handy indeed.

Note that the command asdf latest --all will show you a list of the latest versions for each plugin with its installation status. The --all option is as of yet only available in the --HEAD version and has a bug (#1180) related to variants.

@jthegedus
Copy link
Contributor

@MitchellCash Can I ask why asdf install nodejs latest 14 is not sufficient here?

If it installs, you know there was a new version, you then know what that version is, and you are updated to it immediately. If the resolved version already exists on your machine it doesn't install it again, so you know there was no new version for your filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants