You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
523 B
Bash

#!/usr/bin/env bash
. "$GVM_ROOT/scripts/functions"
command=$1
if [[ -f $GVM_ROOT/scripts/alias-$command ]]; then
shift
"$GVM_ROOT/scripts/alias-$command" "$@"
elif [[ -n $command ]]; then
display_fatal "Unrecognized command line argument: '$command'"
else
echo "= gvm alias
* http://github.com/moovweb/gvm
== DESCRIPTION:
GVM alias is used to manage go version aliases
== Usage
gvm alias Command
== Command
create - create a new alias
delete - delete an alias
list - list aliases"
fi