Repository navigation
[New] nvm ls-remote: show latest aliases - #3920
Conversation
ljharb
left a comment
There was a problem hiding this comment.
Please add examples of using named aliases as well, including when node is also an LTS version, or a local alias is.
Also, let's not include stable or unstable, since these are outdated built-in alias names.
03e2b45 to
a1effe9
Compare
…cal aliases Fixes nvm-sh#2786. Ben Younes added the alias annotations to bare `nvm ls-remote`, with their regression tests; Jordan Harband moved `(Latest: node)` onto the newest node release, gave each kind of annotation a fixed column so the output can be sliced with `cut`, matched aliases to versions in one pass, and kept local aliases out of the mocks and tests. Co-authored-by: Ben Younes <2910651+ousamabenyounes@users.noreply.github.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>
d5ea0c8 to
a4b6562
Compare
|
Addressed @ljharb's review: the latest line now shows Verified locally RED→GREEN: the unit test fails on Still open: PR remains a draft pending your go-ahead to mark it ready. |
edd203d to
a8bb497
Compare
ljharb
left a comment
There was a problem hiding this comment.
made some tweaks, and added nvm_has_italics to master so we can use that styling for the aliases
Summary
nvm ls-remoteoutput with named local aliases and the latestnodealias, including aliases that resolve tonodeon an LTS rowstableandunstablealiases and safely ignore malformed or non-printable alias namesTest verification (RED → GREEN)
bare nvm ls-remote did not annotate a named alias; got >v1.0.0 (LTS: Argon)<sh, Bash, and Dash with GNU awk and mawk; the pinned-container zsh run also passesfunction pollution found: > nvm_get_remote_aliases<sh, Bash, and Dash; reverting that line reproduces the RED resultValidation
sh, Bash, and Dashnvm.shunder Bash, sh, Dash, and ksh dialectsgit diff --checkFixes #2786.