Documentation
¶
Index ¶
- func ExtractWorkspaceName(content string) (string, error)
- func InstallPixi(ctx context.Context) (string, error)
- func ValidateWorkspaceName(name string) error
- type PixiManager
- func (p *PixiManager) BinaryPath() string
- func (p *PixiManager) GetManifest(ctx context.Context, envPath string) (*pkgmgr.Manifest, error)
- func (p *PixiManager) Init(ctx context.Context, opts pkgmgr.InitOptions) error
- func (p *PixiManager) Install(ctx context.Context, opts pkgmgr.InstallOptions) error
- func (p *PixiManager) List(ctx context.Context, opts pkgmgr.ListOptions) ([]pkgmgr.Package, error)
- func (p *PixiManager) Name() string
- func (p *PixiManager) Remove(ctx context.Context, opts pkgmgr.RemoveOptions) error
- func (p *PixiManager) Update(ctx context.Context, opts pkgmgr.UpdateOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractWorkspaceName ¶
ExtractWorkspaceName reads the workspace name from pixi.toml content. It first looks for [workspace] name, then falls back to [project] name. Returns an error if no name field is found in either section, or if the name is invalid (contains path separators, colons, or is a reserved name).
func InstallPixi ¶
InstallPixi automatically downloads and installs pixi to ~/.local/bin. Safe to call concurrently; only the first caller does the actual install.
func ValidateWorkspaceName ¶
ValidateWorkspaceName checks that a workspace name is valid for use with nebi. Names must not be empty, contain path separators or colons (which are ambiguous with filesystem paths and server refs), or be reserved names like "." or "..".
Types ¶
type PixiManager ¶
type PixiManager struct {
// contains filtered or unexported fields
}
PixiManager implements the PackageManager interface for pixi
func NewWithPath ¶
func NewWithPath(customPath string) (*PixiManager, error)
NewWithPath creates a new PixiManager with a custom pixi binary path
func (*PixiManager) BinaryPath ¶
func (p *PixiManager) BinaryPath() string
BinaryPath returns the path to the pixi binary
func (*PixiManager) GetManifest ¶
GetManifest returns the parsed pixi.toml manifest file
func (*PixiManager) Init ¶
func (p *PixiManager) Init(ctx context.Context, opts pkgmgr.InitOptions) error
Init creates a new pixi environment
func (*PixiManager) Install ¶
func (p *PixiManager) Install(ctx context.Context, opts pkgmgr.InstallOptions) error
Install adds packages to an environment
func (*PixiManager) List ¶
func (p *PixiManager) List(ctx context.Context, opts pkgmgr.ListOptions) ([]pkgmgr.Package, error)
List returns installed packages in an environment
func (*PixiManager) Name ¶
func (p *PixiManager) Name() string
Name returns the package manager name
func (*PixiManager) Remove ¶
func (p *PixiManager) Remove(ctx context.Context, opts pkgmgr.RemoveOptions) error
Remove removes packages from an environment
func (*PixiManager) Update ¶
func (p *PixiManager) Update(ctx context.Context, opts pkgmgr.UpdateOptions) error
Update updates packages in an environment