Versions in this module Expand all Collapse all v0 v0.0.7 May 30, 2026 v0.0.6 May 29, 2026 Changes in this version + type Dirs struct + DataRoot string + Root string + type Env struct + ConfigRootEnvKey string + Paths *PathsConfig + func NewEnv(paths *PathsConfig, configRootEnvKey string) *Env + func (e *Env) Command(name string, args ...string) *osexec.Cmd + func (e *Env) CommandContext(ctx context.Context, name string, args ...string) *osexec.Cmd + func (e *Env) Environ() []string + func (e *Env) LookPath(file string) (string, error) + func (e *Env) PrependBinToPATH() error + func (e *Env) PrependBinToPATHForDataRoot(dataRoot string) error + func (e *Env) WithBinPath(env []string) []string + func (e *Env) WithConfigRoot(env []string) []string + type PathsConfig struct + BinDirName string + DataDirName string + RootDirName string + func (c *PathsConfig) BinDir(root string) string + func (c *PathsConfig) BinDirForDataRoot(dataRoot string) (string, error) + func (c *PathsConfig) DataRoot(root string) string + func (c *PathsConfig) DefaultDataRoot() (string, error) + func (c *PathsConfig) DefaultRoot() (string, error) + func (c *PathsConfig) HomeBinDir() (string, error) + func (c *PathsConfig) HomeDataRoot() (string, error) + func (c *PathsConfig) HomeRoot() (string, error) + func (c *PathsConfig) Resolve(rootFlag string) (Dirs, error) + func (c *PathsConfig) ResolveDataRoot(rootFlag string) (string, error) + func (c *PathsConfig) RootFromDataRoot(dataRoot string) (string, error)