Documentation ¶
Index ¶
Constants ¶
View Source
const ( HookFlag = "__VFOX_SHELL" PidFlag = "__VFOX_PID" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager interface { Flush() error Load(envs *Envs) error Get(key string) (string, bool) Remove(envs *Envs) error io.Closer }
func NewEnvManager ¶
type Paths ¶ added in v0.2.5
Paths is a slice of PATH.
func NewPaths ¶ added in v0.3.0
NewPaths returns a new Paths. from is the source of the paths. If from is OsPaths, it returns the paths from the environment variable PATH. If from is PreviousPaths, it returns the paths from the environment variable __VFOX_PREVIOUS_PATHS If from is neither OsPaths nor PreviousPaths, it returns an empty Paths.
func (*Paths) ToBinPaths ¶ added in v0.5.0
ToBinPaths returns a BinPaths from Paths which contains only executable files.
Click to show internal directories.
Click to hide internal directories.