envs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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 added in v0.1.2

func AddEnvManually()

Adds env manually.

func RemoveEnvManually added in v0.1.2

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 added in v0.0.5

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