Skip to content

Allow omitting patch version in use command#14

Merged
hjbdev merged 1 commit intohjbdev:masterfrom
marcinlawnik:omitting-patch-version-in-use-command
Apr 1, 2024
Merged

Allow omitting patch version in use command#14
hjbdev merged 1 commit intohjbdev:masterfrom
marcinlawnik:omitting-patch-version-in-use-command

Conversation

@marcinlawnik
Copy link

Allows for usage like pvm use 8.0 - chooses newest available patch version, ie. 8.0.9 over 8.0.8.

This is a behavior nvm has that I find really useful.

This could obviously be improved upon.
I've added a test for sorting versions.

Sample:
obraz

…available patch version, ie. 8.0.9 over 8.0.8
@hjbdev
Copy link
Owner

hjbdev commented Mar 26, 2024

Ahhh awesome, I was planning on implementing this myself but hadn't found time.

I'll give this a check over the next couple days, thank you!

@hjbdev hjbdev self-requested a review March 26, 2024 23:17
@hjbdev hjbdev merged commit d4016b7 into hjbdev:master Apr 1, 2024
@hjbdev
Copy link
Owner

hjbdev commented Apr 1, 2024

lgtm!

@marcinlawnik marcinlawnik deleted the omitting-patch-version-in-use-command branch April 5, 2024 06:48
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

Successfully merging this pull request may close these issues.

3 participants