Documentation ¶
Index ¶
Constants ¶
View Source
const (
ShellFileName string = "vm_env.sh"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnvManager ¶
type EnvManager struct{}
Unix/Linux envs manager.
func NewEnvManager ¶
func NewEnvManager() (em *EnvManager)
func (*EnvManager) AddToPath ¶
func (em *EnvManager) AddToPath(value string)
Adds new item to $PATH env.
func (*EnvManager) CloseKey ¶
func (em *EnvManager) CloseKey()
func (*EnvManager) DeleteFromPath ¶
func (em *EnvManager) DeleteFromPath(value string)
Deletes an item from $PATH env.
func (*EnvManager) Set ¶
func (em *EnvManager) Set(key, value string)
func (*EnvManager) SetPath ¶
func (em *EnvManager) SetPath()
func (*EnvManager) UnSet ¶
func (em *EnvManager) UnSet(key string)
func (*EnvManager) UnsetPath ¶
func (em *EnvManager) UnsetPath()
Click to show internal directories.
Click to hide internal directories.