models

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_DEPS = 50

Variables

View Source
var (
	COMMAND_SEP    string = ";"
	COMMAND_RUNNER        = "bash"
	COMMAND_FLAG          = "-c"
)

Functions

This section is empty.

Types

type Task

type Task struct {
	Name         string
	Description  []string
	Commands     []string
	Dir          string
	Env          []string
	DependsOn    []string
	ParsingError string
}

type Tasks

type Tasks []Task

func (Tasks) Get

func (ts Tasks) Get(tsname string) (task Task, ok bool)

func (Tasks) Run

func (ts Tasks) Run(ctx context.Context, tsname string) error

func (Tasks) ValidateDependencies

func (ts Tasks) ValidateDependencies(task string, prevTasks []string) error

Jump to

Keyboard shortcuts

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