runner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package runner provides functions for running tasks in a tasks.yaml

Package runner provides functions for running tasks in a tasks.yaml

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceTextTemplate added in v0.1.0

func ReplaceTextTemplate(path string, mappings map[string]*utils.TextTemplate, deprecations map[string]string, templateRegex string) error

ReplaceTextTemplate todo: should be getting from Zarf but it's now private: https://github.com/defenseunicorns/zarf/issues/2395

func Run

func Run(tasksFile types.TasksFile, taskName string, setVariables map[string]string) error

Run runs a task from tasks file

Types

type Runner

type Runner struct {
	TemplateMap map[string]*utils.TextTemplate
	TasksFile   types.TasksFile
	TaskNameMap map[string]bool
	// contains filtered or unexported fields
}

Runner holds the necessary data to run tasks from a tasks file

Jump to

Keyboard shortcuts

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