1
0
mirror of https://github.com/go-task/task.git synced 2025-11-29 22:48:03 +02:00

Start support to including Taskfiles

This commit is contained in:
Andrey Nering
2018-09-09 22:29:29 -03:00
parent 687b4ec837
commit 9a5a1e2253
3 changed files with 33 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ type Taskfile struct {
Version string
Expansions int
Output string
Includes map[string]string
Vars Vars
Tasks Tasks
}
@@ -20,6 +21,7 @@ func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
Version string
Expansions int
Output string
Includes map[string]string
Vars Vars
Tasks Tasks
}
@@ -29,6 +31,7 @@ func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
tf.Version = taskfile.Version
tf.Expansions = taskfile.Expansions
tf.Output = taskfile.Output
tf.Includes = taskfile.Includes
tf.Vars = taskfile.Vars
tf.Tasks = taskfile.Tasks
if tf.Expansions <= 0 {