Documentation
¶
Index ¶
- func DiscoverPipelines(root string, maxDepth int) ([]*api.Pipeline, error)
- func InterpolateContext(ctx map[string]any) error
- func LoadContextFile(filename string) (map[string]any, error)
- func MergeContext(global, local map[string]any) map[string]any
- func RunAll(inputDir, outputDir string, globalContext map[string]any, maxDepth int, ...) error
- func RunInstances(cfg *api.InstancesConfig, inputDir, outputDir string, ...) error
- func RunPipeline(pipeline *api.Pipeline, globalContext map[string]any) error
- func RunSingle(pipelineFile, inputDir, outputDir string, globalContext map[string]any, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverPipelines ¶
DiscoverPipelines walks root looking for .many.yaml files up to maxDepth. A maxDepth of -1 means unlimited. 0 means only root itself. Results are sorted by path depth (parents before children).
func InterpolateContext ¶ added in v1.3.0
InterpolateContext performs a single-pass template render of string values in the context map against the map itself. Strings containing "{{" are parsed as Go templates with Sprig functions and executed with ctx as data.
func LoadContextFile ¶
LoadContextFile reads a YAML file and returns it as a map.
func MergeContext ¶
MergeContext performs a shallow merge of local context over global context. Local keys override global keys at the top level.
func RunAll ¶
func RunAll(inputDir, outputDir string, globalContext map[string]any, maxDepth int, contextFile string) error
RunAll discovers pipelines, executes each, and returns a summary of results. It copies the source tree to outputDir first, then processes in-place.
func RunInstances ¶ added in v1.4.0
func RunInstances(cfg *api.InstancesConfig, inputDir, outputDir string, globalContext map[string]any, maxDepth int, contextFile string) error
RunInstances processes each instance: filtered copy, pipeline discovery, execution.
func RunPipeline ¶
RunPipeline executes a single pipeline's steps sequentially.
Types ¶
This section is empty.