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

Add support for ommiting patch versions in the install and use commands #96

Open
Popescu-PfeifferMarc opened this issue Sep 5, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Popescu-PfeifferMarc
Copy link

Is your feature request related to a problem? Please describe.
I'm frustrated when I have to explicitly type the entire version string out instead of being able to just specify the major and minor version.

Describe the solution you'd like
I want to add the functionality to type zvm i 0.11 and zvm use 0.11. If a patch version is omitted the latest available one will be installed or the latest already installed one (in the case of the use command) will be used.

Describe alternatives you've considered
none

Additional context
The node version manager also supports this feature and was the inspiration for this Issue. I'd be interested on working on this issue myself.

@Popescu-PfeifferMarc
Copy link
Author

I would implement this by adding a function called getVersionAliases, which is called in the fetchVersionMap and getVersion function.

@tristanisham tristanisham self-assigned this Sep 10, 2024
@tristanisham tristanisham added the enhancement New feature or request label Sep 19, 2024
@tristanisham
Copy link
Owner

Hey @Popescu-PfeifferMarc , feel free to submit a pull request for this issue. There's a good target function for this called ExtractInstall. It could turn those aliases back into the proper version strings when building out the installRequest struct.

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

No branches or pull requests

2 participants