lore

package
v0.1.0-dev.20260216091926 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package lore implements the lore CLI commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

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

func (p *Planner) PlanByName(graph *execution.Graph, packages []string) ([]string, error)

PlanByName resolves explicit package names and adds installation nodes to the graph. Returns the resolved package names.

func (*Planner) PlanPackages

func (p *Planner) PlanPackages(graph *execution.Graph, manifestPath string) ([]string, error)

PlanPackages parses a packages-manifest file and adds installation nodes to the graph. Returns the resolved package names.

Directories

Path Synopsis
Package onboard implements the multi-phase onboarding pipeline for lore.
Package onboard implements the multi-phase onboarding pipeline for lore.

Jump to

Keyboard shortcuts

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