saku

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.2.3"

Version is the version number of saku.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitCode

type ExitCode int

ExitCode is the exit code of saku's Run function

const (
	ExitCodeOk ExitCode = iota
	ExitCodeError
)

The exit codes

func Run

func Run(cwd string, args ...string) ExitCode

Run saku command in the given cwd and arguments

type RunMode added in v1.2.0

type RunMode string

RunMode represents the mode of running multiple tasks

const (
	RunModeSequence     RunMode = "sequence"
	RunModeParallel     RunMode = "parallel"
	RunModeParallelRace RunMode = "parallel-race"
)

The run modes

type TaskCollection

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

TaskCollection is the model of the list of tasks.

func ParseConfig

func ParseConfig(config *[]byte) *TaskCollection

ParseConfig parses the given config markdown and returns tasks.

func (*TaskCollection) Run

func (tc *TaskCollection) Run(ctx *runContext, stack *taskStack) error

Run runs the tasks.

func (*TaskCollection) SetRunMode added in v1.2.0

func (tc *TaskCollection) SetRunMode(mode RunMode)

SetRunMode sets the run mode of the collection.

Jump to

Keyboard shortcuts

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