-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
update error message #1992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update error message #1992
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
nvm.sh
Outdated
@@ -2322,7 +2322,7 @@ nvm() { | |||
nvm_echo | |||
nvm_echo 'Note: <version> refers to any version-like string nvm understands. This includes:' | |||
nvm_echo ' - full or partial version numbers, starting with an optional "v" (0.10, v0.1.2, v1)' | |||
nvm_echo " - default (built-in) aliases: ${NVM_NODE_PREFIX}, stable, unstable, ${NVM_IOJS_PREFIX}, system" | |||
nvm_echo " - default (built-in) aliases: ${NVM_NODE_PREFIX}, stable, unstable, ${NVM_IOJS_PREFIX}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"system" is indeed a built-in alias, that will only appear when you do have a system node installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha
nvm.sh
Outdated
NVM_NODE_PREFIX="$(nvm_node_prefix)" | ||
case "$1" in | ||
"stable" | "unstable" | "${NVM_IOJS_PREFIX}" | "${NVM_NODE_PREFIX}") | ||
nvm_err "${1-} is a default alias and cannot be deleted" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm going to eventually change the terminology here from default to built-in, so let's use this wording:
nvm_err "${1-} is a default alias and cannot be deleted" | |
nvm_err "${1-} is a default (built-in) alias and cannot be deleted" |
nvm.sh
Outdated
@@ -3325,6 +3325,7 @@ nvm() { | |||
;; | |||
"unalias") | |||
local NVM_ALIAS_DIR | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line of change is not related
Thanks for the feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great :-) can we add a test for this message?
I added a test - I'm not confident in my ability to write tests in Urchin so I peeked at the existing tests and used them as a guide. What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Also I removed a reference to system as a default alias - since as far as I know it is not a default
I ran into the same issue discussed in this closed issue: #1051
I wish I could contribute something more substantial to nvm. Thanks for maintaining this awesome project :)