Compare commits

..

17 Commits

Author SHA1 Message Date
ryenus
1bbc13d453
Merge d48dffa000bd5d2338cc90e9230793b1bdd6f331 into 99352a64d25ce27d49ff6a449663ce3d7c12e5b5 2025-04-10 16:14:58 +05:00
ryenus
d48dffa000 indent awk script properly 2025-03-12 16:47:31 +08:00
ryenus
a8874db9d6 display a hint when version filtering is in effect
due the use of --min or NVM_MIN, which would show only the versions
higher than the specified min version, and/or the available minor/patch
updates for the installed versions.
2025-03-12 16:47:31 +08:00
ryenus
30c5e810bc set NVM_NO_COLORS to --no-colors to disable color 2025-03-12 16:47:31 +08:00
ryenus
fe6fc5b04b rename min_ver to min for consistency 2025-03-12 16:47:31 +08:00
ryenus
8ef76acdee [test] avoid leaking temp variable 2025-03-12 16:47:31 +08:00
ryenus
b4ba55b30c 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>
2025-03-12 16:47:31 +08:00
ryenus
301cfa12d6 avoid inline initialization for ksh compatibility
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2025-03-12 16:47:31 +08:00
ryenus
c5a62d4228 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.
2025-03-12 16:47:31 +08:00
ryenus
797abf0b44 always show updates for installed versions
even if they're older than $NVM_MIN
2025-03-12 16:47:31 +08:00
ryenus
227bcdf5ac remove function ref duplication 2025-03-12 16:47:31 +08:00
ryenus
87049f38e4 prefixed versions like v18 also work 2025-03-12 16:47:31 +08:00
ryenus
9d0735dc7f rename NVM_MIN_VER to NVM_MIN
since nvm is all about versions, so no need for the explicit suffix.
2025-03-12 16:47:31 +08:00
ryenus
03aea1ad61 trim leading space in mock output due to eclint errors 2025-03-12 16:47:31 +08:00
ryenus
cabc668e48 add test for NVM_MIN_VER support
show only versions newer than NVM_MIN_VER if set
2025-03-12 16:47:31 +08:00
ryenus
90dadd0960 always list installed versions 2025-03-12 16:47:31 +08:00
ryenus
94a67893b3 show only versions newer than NVM_MIN_VER if set 2025-03-12 16:47:31 +08:00

Diff Content Not Available