Documentation
¶
Overview ¶
Package lore implements the lore CLI commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
NewRootCmd creates the root lore command with all subcommands.
Types ¶
type BuildConfig ¶
type BuildConfig struct {
// ManifestPath is the path to a packages-manifest.yaml file.
// Mutually exclusive with Packages.
ManifestPath string
// Packages is a list of package names to install.
// Mutually exclusive with ManifestPath.
Packages []string
// Platform is the target platform (e.g., "Darwin", "Linux.Debian").
// If empty, auto-detected.
Platform string
// Features are optional feature flags to enable.
Features []string
// Settings are key-value configuration settings.
Settings map[string]string
// DryRun prevents actual installation when true.
DryRun bool
// RegistryClient provides access to the package lorepackage.
// If nil, a default client is created.
RegistryClient *lorepackage.Registry
// ActionRegistry provides access to execution actions.
// Must be set before calling Build.
ActionRegistry *execution.ActionRegistry
}
BuildConfig holds configuration for building a package graph.
type BuildResult ¶
type BuildResult struct {
// Graph is the execution graph ready for the execution.
Graph *execution.Graph
// Packages lists the resolved package names.
Packages []string
// Platform is the detected or specified platform.
Platform string
}
BuildResult contains the built execution graph and metadata for packages.
func Build ¶
func Build(cfg BuildConfig) (*BuildResult, error)
Build creates an execution graph from the given configuration.
func BuildFromManifest ¶
func BuildFromManifest(manifestPath, plat string) (*BuildResult, error)
BuildFromManifest creates an execution graph from a packages-manifest.yaml file.
func BuildFromPackages ¶
func BuildFromPackages(packages []string, plat string) (*BuildResult, error)
BuildFromPackages creates an execution graph from a list of package names.
type Planner ¶
type Planner struct {
Platform string
ActionRegistry *execution.ActionRegistry
RegistryClient *lorepackage.Registry
Features []string
Settings map[string]string
DryRun bool
}
Planner encapsulates package resolution for adding installation nodes and phases to an execution graph. Used by both lore.Build() and writ deploy.
func (*Planner) PlanByName ¶
PlanByName resolves explicit package names and adds installation nodes to the graph. Returns the resolved package names.