runner

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTasks

func LoadTasks(customPath string) (*parser.ParseResult, error)

Types

type KeyLineWriter added in v0.7.9

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

func NewKeyLineWriter added in v0.7.9

func NewKeyLineWriter(key string, program *tea.Program, strip bool) *KeyLineWriter

func (*KeyLineWriter) Flush added in v0.7.9

func (kw *KeyLineWriter) Flush()

func (*KeyLineWriter) Write added in v0.7.9

func (kw *KeyLineWriter) Write(p []byte) (int, error)

type ParallelContext added in v0.7.9

type ParallelContext struct {
	Program *tea.Program
	Path    []int
}

type PrefixWriter added in v0.7.4

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

func NewPrefixWriter added in v0.7.4

func NewPrefixWriter(label string, padWidth int, c color.Color, dest io.Writer, mu *sync.Mutex, strip bool) *PrefixWriter

func (*PrefixWriter) Flush added in v0.7.4

func (pw *PrefixWriter) Flush() error

func (*PrefixWriter) Write added in v0.7.4

func (pw *PrefixWriter) Write(p []byte) (int, error)

type Runner

type Runner struct {
	DryRun       bool
	Babfile      string
	BabfilePath  string
	GlobalVars   map[string]string
	GlobalEnv    map[string]string
	GlobalSilent *bool
	GlobalOutput *bool
	GlobalDir    string
	Aliases      map[string]string
}

func New

func New(dryRun bool, babfile string) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, taskName string) error

func (*Runner) RunWithTasks

func (r *Runner) RunWithTasks(ctx context.Context, taskName string, tasks babfile.TaskMap) error

Jump to

Keyboard shortcuts

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