Documentation ¶
Index ¶
Constants ¶
View Source
const NamespaceSeparator = ":"
NamespaceSeparator contains the character that separates namescapes
Variables ¶
View Source
var ( // ErrCantUnmarshalCmd is returned for invalid command YAML ErrCantUnmarshalCmd = errors.New("task: can't unmarshal cmd value") // ErrCantUnmarshalDep is returned for invalid dependency YAML ErrCantUnmarshalDep = errors.New("task: can't unmarshal dep value") )
View Source
var ( // ErrCantUnmarshalPrecondition is returned for invalid precond YAML. ErrCantUnmarshalPrecondition = errors.New("task: Can't unmarshal precondition value") )
View Source
var ( // ErrCantUnmarshalVar is returned for invalid var YAML. ErrCantUnmarshalVar = errors.New("task: can't unmarshal var value") )
Functions ¶
Types ¶
type Cmd ¶
Cmd is a task command
func (*Cmd) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface
type Dep ¶
Dep is a task dependency
func (*Dep) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface
type Precondition ¶
Precondition represents a precondition necessary for a task to run
func (*Precondition) UnmarshalYAML ¶
func (p *Precondition) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler interface.
type Task ¶
type Task struct { Task string Cmds []*Cmd Deps []*Dep Desc string Summary string Sources []string Generates []string Status []string Preconditions []*Precondition Dir string Vars Vars Env Vars Silent bool Method string Prefix string IgnoreError bool `yaml:"ignore_error"` }
Task represents a task
type Taskfile ¶
type Taskfile struct { Version string Expansions int Output string Includes map[string]string Vars Vars Env Vars Tasks Tasks Silent bool }
Taskfile represents a Taskfile.yml
func (*Taskfile) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface
type Var ¶
Var represents either a static or dynamic variable.
func (*Var) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.