executor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteStep

func ExecuteStep(step config.Step, ec *ExecutionContext) error

func ExecuteSteps

func ExecuteSteps(steps []config.Step, ec *ExecutionContext) error

func HandleFile

func HandleFile(step config.Step, ec *ExecutionContext) error

func HandleIncludeVars

func HandleIncludeVars(step config.Step, ec *ExecutionContext) error

func HandleShell

func HandleShell(step config.Step, ec *ExecutionContext) error

func HandleTemplate

func HandleTemplate(step config.Step, ec *ExecutionContext) error

func HandleWithFileTree

func HandleWithFileTree(step config.Step, ec *ExecutionContext) error

func HandleWithItems

func HandleWithItems(step config.Step, ec *ExecutionContext) error

func Start

func Start(startConfig StartConfig, log logger.Logger) error

Types

type ExecutionContext

type ExecutionContext struct {
	Variables    map[string]interface{}
	CurrentDir   string
	CurrentFile  string
	Level        int
	CurrentIndex int
	TotalSteps   int
	Logger       logger.Logger
	SudoPass     string
	Tags         []string
	DryRun       bool

	// Injected dependencies
	Template  template.Renderer
	Evaluator expression.Evaluator
	PathUtil  *pathutil.PathExpander
	FileTree  *filetree.Walker
}

func (*ExecutionContext) Copy

type StartConfig

type StartConfig struct {
	ConfigFilePath string
	VarsFilePath   string
	SudoPass       string
	Tags           []string
	DryRun         bool
}

Jump to

Keyboard shortcuts

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