Documentation
¶
Index ¶
Constants ¶
const NamespaceSeparator = ":"
NamespaceSeparator contains the character that separates namescapes
Variables ¶
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") )
var ( // ErrCantUnmarshalIncludedTaskfile is returned for invalid var YAML. ErrCantUnmarshalIncludedTaskfile = errors.New("task: can't unmarshal included value") )
var ( // ErrCantUnmarshalPrecondition is returned for invalid precond YAML. ErrCantUnmarshalPrecondition = errors.New("task: Can't unmarshal precondition value") )
var ( // ErrCantUnmarshalTask is returned for invalid task YAML ErrCantUnmarshalTask = errors.New("task: can't unmarshal task value") )
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 IncludedTaskfile ¶
IncludedTaskfile represents information about included tasksfile
func (*IncludedTaskfile) UnmarshalYAML ¶
func (it *IncludedTaskfile) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler interface
type IncludedTaskfiles ¶
type IncludedTaskfiles = map[string]IncludedTaskfile
IncludedTaskfiles represents information about included tasksfiles
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
Label string
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
}
Task represents a task
func (*Task) UnmarshalYAML ¶
type Taskfile ¶
type Taskfile struct {
Version string
Expansions int
Output string
Method string
Includes IncludedTaskfiles
Vars *Vars
Env *Vars
Tasks Tasks
Silent bool
Dotenv []string
}
Taskfile represents a Taskfile.yml
func (*Taskfile) ParsedVersion ¶
ParsedVersion returns the version as a float64
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.