Documentation ¶
Index ¶
- Constants
- func ConfigCommand(cmd *cobra.Command, _ []string)
- func InstallCommand(cmd *cobra.Command, args []string) error
- func ListCommand(cmd *cobra.Command, args []string) error
- func PostRun(cmd *cobra.Command, _ []string)
- func UninstallCommand(cmd *cobra.Command, args []string) error
- func UseCommand(cmd *cobra.Command, args []string) error
- func ValidateVersionArg(cmd *cobra.Command, args []string) error
- type Config
- type GoEnvContextKey
Constants ¶
View Source
const ( DefaultGoenvRootDirectory = "/usr/local/go" DefaultGoInstallDirectory = "/usr/local/goenv" GoEnvRootDirEnvVar = "GOENV_ROOT_DIR" GoEnvInstallDirEnvVar = "GOENV_INSTALL_DIR" )
View Source
const (
PermError string = "you do not have access to %v"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigCommand ¶ added in v0.0.4
Types ¶
type Config ¶ added in v0.2.0
type Config struct { // The file placed at GoenvRootDirectory is a symlink to the GoenvInstallDirectory GoenvRootDirectory string // Install directory defaults to /usr/local/goenv and can be configured with GoenvInstallDirectory string }
func ReadConfig ¶ added in v0.2.0
func ReadConfig() *Config
ReadConfig reads the environment variables for a user and creates a config. If we need any additional config, it'll be parsed in here.
type GoEnvContextKey ¶ added in v0.1.0
type GoEnvContextKey string
Click to show internal directories.
Click to hide internal directories.