envs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

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