mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 12:56:41 +10:00
37 lines
783 B
Bash
Executable File
37 lines
783 B
Bash
Executable File
#!/bin/bash
|
|
. $GVM_ROOT/scripts/functions
|
|
|
|
[[ $gvm_go_name != "" ]] ||
|
|
display_error "No Go version selected"
|
|
[[ -d $GVM_ROOT/gos/$gvm_go_name ]] ||
|
|
display_error "Invalid or corrupt Go version"
|
|
[[ -d $GVM_ROOT/pkgsets/$gvm_go_name/$gvm_pkgset_name ]] ||
|
|
display_error "Missing package set folder"
|
|
|
|
command=$1
|
|
if [ -f $GVM_ROOT/scripts/pkg-$command ]; then
|
|
shift
|
|
$GVM_ROOT/scripts/pkg-$command $@
|
|
elif [[ -n $command ]]; then
|
|
display_error "Unrecognized command line argument: '$command'"
|
|
else
|
|
echo "= gvm pkg
|
|
|
|
* http://github.com/moovweb/gvm
|
|
|
|
== DESCRIPTION:
|
|
|
|
GVM Package is used to manage various Go packages
|
|
|
|
== Usage
|
|
|
|
gvm pkg Command
|
|
|
|
== Command
|
|
|
|
install - install go packages
|
|
uninstall - uninstall go packages
|
|
list - list installed go packages"
|
|
fi
|
|
|