goswitch

package
v0.0.0-...-ced39b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PATH is the name of the env variable of the same name.
	PATH = "PATH"
	// GOPATH is the name of the env variable of the same name.
	GOPATH = "GOPATH"
	// PS1 is the name of the env variable of the same name.
	PS1 = "PS1"
	// CDPATH is the name of the env variable of the same name.
	CDPATH = "CDPATH"
	// PREVPATH is the name of the variable used to backup PATH.
	PREVPATH = "GOWORKON_PREVIOUS_PATH"
	// PREVGOPATH is the name of the variable used to backup GOPATH.
	PREVGOPATH = "GOWORKON_PREVIOUS_GOPATH"
	// PREVPS1 is the name of the variable used to backup PS1.
	PREVPS1 = "GOWORKON_PREVIOUS_PS1"
	// PREVCDPATH is the name of the variable used to backup CDPATH.
	PREVCDPATH = "GOWORKON_PREVIOUS_CDPATH"
)

Variables

This section is empty.

Functions

func Reset

func Reset() error

Reset will set the environment to its previous state.

func Switch

func Switch(cfg environment.Config, isDefault bool, extraBin []string) error

Switch will set the proper environment variables to set an environment as the current running one.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL