Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added ls-remote

  • Loading branch information...
commit 1f67500514bdcfff0cee42f50e90cd79a1af7ef9 1 parent 2da1027
@tj tj authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 nave.sh
View
15 nave.sh
@@ -47,6 +47,9 @@ main () {
local cmd="$1"
shift
case $cmd in
+ ls-remote)
+ nave_versions && exit
+ ;;
install | fetch | use | install | clean | test | ls | uninstall )
cmd="nave_$cmd"
;;
@@ -86,6 +89,15 @@ fail () {
exit 1
}
+nave_versions() {
+ curl http://github.com/api/v2/yaml/repos/show/ry/node/tags \
+ 2> /dev/null \
+ | tail -n +3 \
+ | egrep v \
+ | cut -d ':' -f 1 \
+ | sort -r
+}
+
nave_fetch () {
version="$1"
version="${version/v/}"
@@ -203,7 +215,8 @@ Commands:
use <version> Enter a subshell where <version> is being used
clean <version> Delete the source code for <version>
uninstall <version> Delete the install for <version>
- ls Output versions currently installed
+ ls-remote List remote node versions
+ ls List versions currently installed
help Output help information
EOF
Please sign in to comment.
Something went wrong with that request. Please try again.