env

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVarManager

type EnvVarManager struct {
	// contains filtered or unexported fields
}

EnvVarManager handles environment variable operations

func NewEnvVarManager

func NewEnvVarManager() *EnvVarManager

NewEnvVarManager creates a new environment variable manager

func (*EnvVarManager) AppendToPath

func (e *EnvVarManager) AppendToPath(newPath string) error

AppendToPath adds a new path to the PATH environment variable

func (*EnvVarManager) GetEnvVar

func (e *EnvVarManager) GetEnvVar(name string) (string, error)

GetEnvVar retrieves a user environment variable

func (*EnvVarManager) SetEnvVar

func (e *EnvVarManager) SetEnvVar(name, value string) error

SetEnvVar sets a user environment variable

Jump to

Keyboard shortcuts

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