lore

package
v0.1.0-dev.20260213040213 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 18 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
}

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.

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