forked from go-task/task
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.go
More file actions
26 lines (20 loc) · 857 Bytes
/
Copy pathtaskfile.go
File metadata and controls
26 lines (20 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package taskfile
type PatternVar struct {
Pattern string
Var VarValue
}
type Taskfile struct {
// Version is the version of the Task schema
// It is the first thing that is parsed by Task in order to inform how the rest of the file should be parsed.
Version string `json:"version,omitempty"`
// Features are flags for task
// It enables users to change the behavior of task by enabling/disabling features of the engine
Features Features `json:"features,omitempty"`
// Vars are global variables, usually used as default values
Vars Vars `json:"vars,omitempty"`
// Includes allows other Taskfiles to be included in this one. Each other include is becomes "namespaced".
// More on namespacing later...
Includes Includes `json:"includes,omitempty"`
// Tasks is a set of task definitions
Tasks map[string]Task `json:"tasks,omitempty"`
}