manifest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package manifest loads the per-run stack list, either from a YAML/JSON manifest file or from repeated --stack NAME:PATH flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Title  string     `yaml:"title" json:"title"`
	Marker string     `yaml:"marker" json:"marker"`
	Stacks []StackRef `yaml:"stacks" json:"stacks"`
}

Manifest is the per-run input document.

func Load

func Load(path string) (Manifest, error)

Load reads a YAML or JSON manifest (YAML is a superset of JSON, so yaml.v3 parses both).

type StackRef

type StackRef struct {
	Name string `yaml:"name" json:"name"`
	Plan string `yaml:"plan" json:"plan"`
	Dir  string `yaml:"dir" json:"dir"` // source dir; defaults to the plan file's directory
}

StackRef names a stack and the path to its plan JSON.

func ParseStackFlags

func ParseStackFlags(flags []string) ([]StackRef, error)

ParseStackFlags turns "NAME:PATH" strings into StackRefs. NAME may contain slashes; only the first ':' separates name from path.

Jump to

Keyboard shortcuts

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