selection

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package selection resolves a user's raw component picks against the package manifest: closes the set under Requires, rejects Conflicts, validates against the chosen Base via ValidForBases, and picks a Base when the user did not specify one. Output is a Selection ready to drive render.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(pkg *api.Package, baseName string, picks []string) (*api.Selection, error)

Resolve takes the package manifest, the user's chosen base name (may be ""), and the user's raw selected component names. Returns a Selection whose Components is the closure under Requires, with Conflicts and ValidForBases validated.

If baseName is "", the package's default base is chosen; if no default is declared and there is exactly one base, that one is used; otherwise an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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