Documentation
¶
Index ¶
- type Config
- type Env
- func (e *Env) AddEnvVars(envvars ...string)
- func (e *Env) Close()
- func (e *Env) GetEnvVar(name string) string
- func (e *Env) GetEnvVars() []string
- func (e *Env) GetPath() string
- func (e *Env) Link(source string, linkFileName string) error
- func (e *Env) Run(cmdString string) (string, error)
- func (e *Env) SetWorkDir(workDir string)
- type Path
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env represents the Env type
func (*Env) AddEnvVars ¶
AddEnvVars adds a list of environment variables
func (*Env) GetEnvVar ¶
GetEnvVar returns the value of the given environment variable in the current environment
func (*Env) GetEnvVars ¶
GetEnvVars provides all the environment variables (including the generated PATH)
func (*Env) Link ¶
Link creates a symlink in the environment path to the source file if linkName is empty, will use the same filename
func (*Env) SetWorkDir ¶
SetWorkDir sets the current working directory
Click to show internal directories.
Click to hide internal directories.