task

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd string

Cmd ...

type Deps

type Deps []string

Deps

type Paths

type Paths []string

Paths

type Task

type Task struct {
	Cmds      []Cmd               `yaml:"cmds,omitempty"`
	Deps      Deps                `yaml:"deps,omitempty"`
	Desc      string              `yaml:"desc,omitempty"`
	Disable   bool                `yaml:"disable,omitempty"`
	Default   bool                `yaml:"default,omitempty"`
	Paths     Paths               `yaml:"paths,omitempty"`
	Templates templates.Templates `yaml:"templates,omitempty"`
	Vars      Vars                `yaml:"vars,omitempty"`
	Watch     Watch               `yaml:"watch,omitempty"`
	// contains filtered or unexported fields
}

Task ...

func (*Task) AddDep

func (t *Task) AddDep(task *Task)

func (*Task) Exec

func (t *Task) Exec(ctx context.Context) error

func (*Task) ExecDeps

func (t *Task) ExecDeps(ctx context.Context) error

func (*Task) ShouldWatch

func (t *Task) ShouldWatch() bool

func (*Task) WriteTemplates

func (t *Task) WriteTemplates(ctx context.Context, cwd string) error

type Tasks

type Tasks map[string]*Task

Tasks ...

type Var

type Var string

Var

type Vars

type Vars map[string][]Var

Vars ...

type Watch

type Watch struct {
	Paths  Paths    `yaml:"paths,omitempty"`
	Ignore []string `yaml:"ignore,omitempty"`
}

Watch

Jump to

Keyboard shortcuts

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