tasks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCommand = errors.New("error running command")

Functions

This section is empty.

Types

type Task

type Task struct {
	Command     string   `yaml:"command"`
	Arguments   []string `yaml:"arguments"`
	Path        string   `yaml:"path"`
	IgnoreError bool     `yaml:"ignore-error"`
}

type TaskExecuter

type TaskExecuter struct {
	// contains filtered or unexported fields
}

func NewTaskExecuter

func NewTaskExecuter(logger xlogger.Logger) *TaskExecuter

func (*TaskExecuter) ExecuteTasks

func (t *TaskExecuter) ExecuteTasks(tasks []Task, data map[string]interface{}, path string) error

Jump to

Keyboard shortcuts

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