Compare commits

..

15 Commits

Author SHA1 Message Date
ryenus
a6dda55223
Merge 01a05672ad554b2ed1337580ce5bf2ef411c4ae3 into 4beab63631764fc381a0e56273faf8d43b8f9509 2024-08-13 00:54:59 +00:00
ryenus
01a05672ad set NVM_NO_COLORS to --no-colors to disable color 2024-08-08 12:10:45 +08:00
ryenus
11db2e2453 rename min_ver to min for consistency 2024-08-08 12:10:44 +08:00
ryenus
07678f2b50 [test] avoid leaking temp variable 2024-08-08 12:10:44 +08:00
ryenus
9ff270961d 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-08-08 12:10:44 +08:00
ryenus
e5aaea917c avoid inline initialization for ksh compatibility
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2024-08-08 12:10:44 +08:00
ryenus
e039847d05 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-08-08 12:10:44 +08:00
ryenus
f8fdde6b77 always show updates for installed versions
even if they're older than $NVM_MIN
2024-08-08 12:10:44 +08:00
ryenus
aa8b07f46b remove function ref duplication 2024-08-08 12:10:25 +08:00
ryenus
e3614cd9c5 prefixed versions like v18 also work 2024-08-08 12:10:25 +08:00
ryenus
8c969bc13c rename NVM_MIN_VER to NVM_MIN
since nvm is all about versions, so no need for the explicit suffix.
2024-08-08 12:10:25 +08:00
ryenus
f94317da88 trim leading space in mock output due to eclint errors 2024-08-08 12:10:25 +08:00
ryenus
a504667348 add test for NVM_MIN_VER support
show only versions newer than NVM_MIN_VER if set
2024-08-08 12:10:25 +08:00
ryenus
04caa4cf4e always list installed versions 2024-08-08 12:10:25 +08:00
ryenus
9a2c416d47 show only versions newer than NVM_MIN_VER if set 2024-08-08 12:10:25 +08:00

Diff Content Not Available