env

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASH = ShellType("bash")
	ZSH  = ShellType("zsh")
	KSH  = ShellType("ksh")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct {
	Key   string
	Value string
}

type Manager

type Manager interface {
	Flush()
	Load([]*KV) error
	Get(key string) (string, error)
	Remove(key string) error
	ReShell(callback func()) error
}

func NewEnvManager

func NewEnvManager(vfConfigPath string) (Manager, error)

type ShellInfo

type ShellInfo struct {
	ShellType
	ShellPath  string
	ConfigPath string
}

func NewShellInfo

func NewShellInfo() (*ShellInfo, error)

type ShellType

type ShellType string

Jump to

Keyboard shortcuts

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