 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func Merge(t1, t2 *Taskfile, namespaces ...string) error
- type Call
- type Cmd
- type Dep
- type IncludedTaskfile
- type IncludedTaskfiles
- func (tfs *IncludedTaskfiles) Len() int
- func (tfs *IncludedTaskfiles) Merge(other *IncludedTaskfiles)
- func (tfs *IncludedTaskfiles) Range(yield func(key string, includedTaskfile IncludedTaskfile) error) error
- func (tfs *IncludedTaskfiles) Set(key string, includedTaskfile IncludedTaskfile)
- func (tfs *IncludedTaskfiles) UnmarshalYAML(node *yaml.Node) error
 
- type Precondition
- type Task
- type Taskfile
- type Tasks
- type Var
- type Vars
Constants ¶
const NamespaceSeparator = ":"
    NamespaceSeparator contains the character that separates namescapes
Variables ¶
var ( // ErrCantUnmarshalPrecondition is returned for invalid precond YAML. ErrCantUnmarshalPrecondition = errors.New("task: Can't unmarshal precondition 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 struct {
	Keys    []string
	Mapping map[string]IncludedTaskfile
}
    IncludedTaskfiles represents information about included tasksfiles
func (*IncludedTaskfiles) Len ¶ added in v3.1.0
func (tfs *IncludedTaskfiles) Len() int
Len returns the length of the map
func (*IncludedTaskfiles) Merge ¶ added in v3.1.0
func (tfs *IncludedTaskfiles) Merge(other *IncludedTaskfiles)
Merge merges the given IncludedTaskfiles into the caller one
func (*IncludedTaskfiles) Range ¶ added in v3.1.0
func (tfs *IncludedTaskfiles) Range(yield func(key string, includedTaskfile IncludedTaskfile) error) error
Range allows you to loop into the included taskfiles in its right order
func (*IncludedTaskfiles) Set ¶ added in v3.1.0
func (tfs *IncludedTaskfiles) Set(key string, includedTaskfile IncludedTaskfile)
Set sets a value to a given key
func (*IncludedTaskfiles) UnmarshalYAML ¶ added in v3.1.0
func (tfs *IncludedTaskfiles) UnmarshalYAML(node *yaml.Node) error
UnmarshalYAML implements the 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
	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.
type Vars ¶
Vars is a string[string] variables map.
func (*Vars) ToCacheMap ¶
ToCacheMap converts Vars to a map containing only the static variables
func (*Vars) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.