envs

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShellFileName string = "vm_env.sh"
)

Variables

This section is empty.

Functions

func AddEnvManually

func AddEnvManually()

Adds env manually.

func RemoveEnvManually

func RemoveEnvManually()

Removes env manually.

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()

Jump to

Keyboard shortcuts

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