The virtual enviroments manager for Go!.
See to RELEASES PAGE and get your binary file for various operational systems and architecturies.
NOTE: If gets alone binary, extract it (if archived) and PUT the directory into your PATH enviroment variable.
Check your $PATH enviroment variable:
export PATH=/dir/of/my/goenv_binary:$PATHGet sources:
go get -u github.com/moisespsena-go/goenv/goenvCheck your $PATH enviroment variable:
export PATH=$GOPATH/bin:$PATHgoenv setup | tee -a ~/.bashrc
source ~/.bashrcgoenv -hOutput:
The virtual enviroments manager for Go!
Usage:
goenv [command]
Available Commands:
activate Activate the virtualenv with NAME.
backup Create backup .tar.gz file for the virtualenv with have NAME.
completion Generates bash completion scripts
db Returns the current database path.
help Help about any command
init Init new virtual enviroment.
ls List all virtual enviroments on current database.
path Print env path
restore Restore backup.tar.gz file to the virtualenv with have NAME.
rm Remove the virtualenv with have NAME.
setup Generate sources for custom prompt commands.
update Update activation scripts.
version Show program version
versions Manage golang binary versions
Flags:
-d, --db string Database directory (default is $HOME/.goenv). (default "~/.goenv")
-h, --help help for goenv
Use "goenv [command] --help" for more information about a command.
goenv init env1goenv lseval $(goenv activate env1)or (see to Database section)
source $(goenv db)/env1/activategoenv-deactivateMove to trash directory (DB_DIR/.trash, see to Database section):
goenv rm env1Remove permanently:
goenv rm -p env1Get database path:
goenv dbFor use custom database path, set the -d flag:
goenv -d ~/custom-db args...Examples:
goenv -d ~/custom-db init env2
goenv -d ~/custom-db lsSet the enviroment variable:
export GOENVDB=~/custom-dbor
GOENVDB=~/custom-db goenv args...By Moises P. Sena.