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

Cache available versions #663

Open
1 of 2 tasks
reitzig opened this issue Jul 16, 2018 · 2 comments
Open
1 of 2 tasks

Cache available versions #663

reitzig opened this issue Jul 16, 2018 · 2 comments

Comments

@reitzig
Copy link
Contributor

reitzig commented Jul 16, 2018

Please tick one:

Please explain the Issue / Feature Request here:

Store available candidate versions, just like the list of candidates.

Rationale: While versions can be retrieved via sdk ls $candidate, or

curl -s https://api.sdkman.io/2/candidates/java/linux64/versions/all

if you want to deal with the list programmatically, it's a bit much overhead for interactive applications.
sdk update could easily store lists of available versions, e.g. as CSV in

.sdkman/var/versions/$candidate

(which could even deprecate .sdkman/var/candidates).
Side note: storing candidates and versions one per line might be more helpful for consuming shell scripts.

Concrete use cases:

  • Auto-completion: sdk install java 8.<tab> should complete in meaningful ways.
  • Faster sdk ls $candidate (which might warn if the stored data is old).
@marc0der
Copy link
Member

Cache available versions

@mustaphazorgati
Copy link

Hi @marc0der,

is this issue dead?

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

No branches or pull requests

3 participants