Documentation
¶
Index ¶
Constants ¶
View Source
const ( HomeFromEnv = "VFOX_HOME" PluginFromEnv = "VFOX_PLUGIN" CacheFromEnv = "VFOX_CACHE" TempFromEnv = "VFOX_TEMP" HookFlag = "__VFOX_SHELL" PidFlag = "__VFOX_PID" )
View Source
const Newline = "\n"
View Source
const PathVarName = "PATH"
Variables ¶
This section is empty.
Functions ¶
func GetVfoxCache ¶ added in v0.6.6
func GetVfoxCache() string
func GetVfoxHome ¶ added in v0.6.6
func GetVfoxHome() string
func GetVfoxPlugin ¶ added in v0.6.6
func GetVfoxPlugin() string
func GetVfoxTemp ¶ added in v0.6.6
func GetVfoxTemp() string
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.
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.