Documentation ¶
Index ¶
- Variables
- func GetTermPrinter(colorName color.Attribute) func(...interface{}) string
- func GetTermPrinterF(colorName color.Attribute) func(string, ...interface{}) string
- type App
- func (a *App) Current() (*Env, error)
- func (a *App) EnumerateExportVars() []string
- func (a *App) Link(envName string) error
- func (a *App) ListEnvs() []*Env
- func (a *App) Load() error
- func (a *App) MakeCurrent(envName string) error
- func (a *App) MakeUnsetExportVars() string
- func (a *App) NewEnv(envName string) (*Env, error)
- func (a *App) ParseExportVars() error
- func (a *App) Unlink() error
- func (a *App) Unload() error
- func (a *App) UnsetExportVars()
- type AppSet
- type Env
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *log.Logger
View Source
var Version = "0.0.3"
Functions ¶
func GetTermPrinter ¶
Types ¶
type App ¶
type App struct { Name string EnvType string `yaml:"type"` Path string Root string Target string Definition string Variables []string VariableNames []string ExportVariables map[string]string LoadAction string `yaml:"load"` UnloadAction string `yaml:"unload"` }
func (*App) EnumerateExportVars ¶
func (*App) MakeCurrent ¶
func (*App) MakeUnsetExportVars ¶
func (*App) ParseExportVars ¶
func (*App) UnsetExportVars ¶
func (a *App) UnsetExportVars()
type Env ¶
type Env struct { Name string Path string Current bool EnvType string ExportVariables map[string]string Variables map[string]string }
func NewDirectoryEnv ¶
NewDirectoryEnv is a factory method that properly initializes the Env struct for the env type of Directory
func NewEnvironmentEnv ¶
func NewEnvironmentEnv(name string, basePath string, exportVars map[string]string, vars []string) (*Env, error)
NewEnvironmentEnv is a factory method that properly initializes the Env struct for the env type of Environment
func (*Env) Construct ¶
*Constructs* a new environment, not to be confused w/ the Constructor NewEnv In case of environment type, queries user for values Not implemented for other types yet
func (*Env) MakeExportStatements ¶
This is a separate function from PrintExports to make it easier to test
func (*Env) PopulateExportVars ¶
func (*Env) PrintExports ¶
func (e *Env) PrintExports()
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/fatih/color
Package color is an ANSI color package to output colorized or SGR defined output to the standard output.
|
Package color is an ANSI color package to output colorized or SGR defined output to the standard output. |
_workspace/src/github.com/mattn/go-isatty
Package isatty implements interface to isatty
|
Package isatty implements interface to isatty |
_workspace/src/github.com/shiena/ansicolor
Package ansicolor provides color console in Windows as ANSICON.
|
Package ansicolor provides color console in Windows as ANSICON. |
_workspace/src/github.com/shiena/ansicolor/ansicolor
The ansicolor command colors a console text by ANSI escape sequence like wac.
|
The ansicolor command colors a console text by ANSI escape sequence like wac. |
_workspace/src/github.com/spf13/cobra
Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.
|
Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces. |
_workspace/src/github.com/spf13/pflag
pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
|
pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags. |
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
|
Package yaml implements YAML support for the Go language. |
cmd
|
|
Click to show internal directories.
Click to hide internal directories.