env

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveEntry

type ActiveEntry struct {
	manifest.PkgEntry
	Scope     manifest.Scope
	Installed bool
}

type ActiveEnvVar

type ActiveEnvVar struct {
	Key   string
	Value string
	Scope manifest.Scope
}

type Manager

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

func New

func New(pkgs *pkg.Manager, store *storage.Store) *Manager

func (*Manager) ActiveBinDirs

func (m *Manager) ActiveBinDirs() ([]string, error)

func (*Manager) ActiveDepTrees

func (m *Manager) ActiveDepTrees(ctx context.Context) ([]*pkg.DepTree, error)

func (*Manager) ActiveEnv

func (m *Manager) ActiveEnv() (map[string]ActiveEnvVar, error)

func (*Manager) ListActive

func (m *Manager) ListActive() ([]ActiveEntry, error)

func (*Manager) Refresh

func (m *Manager) Refresh(ctx context.Context) error

func (*Manager) SetEnv

func (m *Manager) SetEnv(vars []Var, scope manifest.Scope) error

func (*Manager) Tidy

func (m *Manager) Tidy(ctx context.Context, scope manifest.Scope) error

func (*Manager) UnsetEnv

func (m *Manager) UnsetEnv(keys []string, scope manifest.Scope) error

func (*Manager) Unuse

func (m *Manager) Unuse(ctx context.Context, pkgName string, scope manifest.Scope) error

func (*Manager) Upgrade

func (m *Manager) Upgrade(ctx context.Context, scope manifest.Scope) error

func (*Manager) Use

func (m *Manager) Use(ctx context.Context, refs pkg.Refs, scope manifest.Scope) error

type Var

type Var struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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