mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
Added stub install command
This commit is contained in:
@@ -2,11 +2,14 @@ if [[ $1 == "version" ]]; then
|
||||
echo "Go Version Manager v$GVM_VERSION"
|
||||
elif [[ $1 == "implode" ]]; then
|
||||
rm -rf ~/.gvm
|
||||
elif [[ $1 == "install" ]]; then
|
||||
~/.gvm/bin/gvm-install $@
|
||||
else
|
||||
echo "== Usage
|
||||
gvm Action
|
||||
== Action
|
||||
version - print the gvm version number
|
||||
implode - completely remove gvm"
|
||||
implode - completely remove gvm
|
||||
install - install go versions"
|
||||
fi
|
||||
|
||||
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "install" ]]; then
|
||||
if [[ -n $2 ]]; then
|
||||
echo "Installing version $2"
|
||||
exit 0
|
||||
else
|
||||
echo "ERROR: Please specifiy the version"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Please use gvm [action] to call this file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user