mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
- Remove unecessary $(cat) - switch * to ./* to avoid entries with dashes to be treated as options - replace $* with "$@" - repeating change path serial calls - unecessary if change path is called one (get script)
30 lines
523 B
Bash
Executable File
30 lines
523 B
Bash
Executable File
#!/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
|
|
|