Compare commits

..

17 Commits

Author SHA1 Message Date
ryenus
ab74b66328
Merge f28584cecfc1641c44957cc4da6aadec7fd9e0bd into 99352a64d25ce27d49ff6a449663ce3d7c12e5b5 2025-04-14 12:55:36 +00:00
ryenus
f28584cecf indent awk script properly 2025-04-14 20:43:17 +08:00
ryenus
fc4a98b771 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-04-14 20:43:17 +08:00
ryenus
dd28eb4932 set NVM_NO_COLORS to --no-colors to disable color 2025-04-14 20:43:17 +08:00
ryenus
206a14297c rename min_ver to min for consistency 2025-04-14 20:43:17 +08:00
ryenus
f99c9f30cd [test] avoid leaking temp variable 2025-04-14 20:43:17 +08:00
ryenus
c02964100e 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-04-14 20:43:17 +08:00
ryenus
e71918ec8c avoid inline initialization for ksh compatibility
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2025-04-14 20:43:17 +08:00
ryenus
594f8c0a80 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-04-14 20:43:17 +08:00
ryenus
54a5777ff8 always show updates for installed versions
even if they're older than $NVM_MIN
2025-04-14 20:43:08 +08:00
ryenus
858eda58c4 remove function ref duplication 2025-04-14 20:43:08 +08:00
ryenus
f2b7583b6b prefixed versions like v18 also work 2025-04-14 20:43:08 +08:00
ryenus
b16b4ee6ad rename NVM_MIN_VER to NVM_MIN
since nvm is all about versions, so no need for the explicit suffix.
2025-04-14 20:43:08 +08:00
ryenus
9f4dd6477a trim leading space in mock output due to eclint errors 2025-04-14 20:43:08 +08:00
ryenus
c390144c1e add test for NVM_MIN_VER support
show only versions newer than NVM_MIN_VER if set
2025-04-14 20:43:08 +08:00
ryenus
37811e0d7d always list installed versions 2025-04-14 20:43:08 +08:00
ryenus
48fe276e36 show only versions newer than NVM_MIN_VER if set 2025-04-14 20:43:08 +08:00

Diff Content Not Available