ryenus
41381094db
Merge abda08ec3328ed571182c22f0130595a00c3ce59 into 4beab63631764fc381a0e56273faf8d43b8f9509
2024-08-07 09:39:48 +00:00
ryenus
abda08ec33
set NVM_NO_COLORS to --no-colors to disable color
2024-07-30 08:07:29 +08:00
ryenus
6c2bf69621
rename min_ver to min for consistency
2024-07-30 08:07:04 +08:00
ryenus
22dc48fa21
[test] avoid leaking temp variable
2024-07-29 11:01:37 +08:00
ryenus
03ecd5c33d
ls-remote: introduce temp var for env inheritance
...
This is to inherit $NVM_MIN from env when defined, meanwhile avoiding
inline local variable initialization for ksh compatibility.
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2024-07-29 11:01:37 +08:00
ryenus
1dce063900
avoid inline initialization for ksh compatibility
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2024-07-29 11:01:37 +08:00
ryenus
ceff60c572
ls-remote: add CLI option --min=<version>
...
When omitted, fallback to the environment variable "NVM_MIN" if set.
And the CLI option --min=<version> takes precedence over the environment
variable "NVM_MIN" if both are present.
2024-07-29 11:01:37 +08:00
ryenus
56142b471c
always show updates for installed versions
...
even if they're older than $NVM_MIN
2024-07-29 11:01:37 +08:00
ryenus
35c801b1c9
remove function ref duplication
2024-07-29 11:01:23 +08:00
ryenus
159bde0ef2
prefixed versions like v18 also work
2024-07-29 11:01:23 +08:00
ryenus
5bc34992a9
rename NVM_MIN_VER to NVM_MIN
...
since nvm is all about versions, so no need for the explicit suffix.
2024-07-29 11:01:23 +08:00
ryenus
f20963eee8
trim leading space in mock output due to eclint errors
2024-07-29 11:01:23 +08:00
ryenus
a37da3aa48
add test for NVM_MIN_VER support
...
show only versions newer than NVM_MIN_VER if set
2024-07-29 11:01:23 +08:00
ryenus
5303492b87
always list installed versions
2024-07-29 11:01:23 +08:00
ryenus
5925f32a63
show only versions newer than NVM_MIN_VER if set
2024-07-29 11:01:23 +08:00