mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
feat: taskfile special variable (#1523)
This commit is contained in:
@@ -40,7 +40,6 @@ type Task struct {
|
||||
Run string
|
||||
IncludeVars *Vars
|
||||
IncludedTaskfileVars *Vars
|
||||
IncludedTaskfile *Include
|
||||
Platforms []*Platform
|
||||
Location *Location
|
||||
Watch bool
|
||||
@@ -207,7 +206,6 @@ func (t *Task) DeepCopy() *Task {
|
||||
Run: t.Run,
|
||||
IncludeVars: t.IncludeVars.DeepCopy(),
|
||||
IncludedTaskfileVars: t.IncludedTaskfileVars.DeepCopy(),
|
||||
IncludedTaskfile: t.IncludedTaskfile.DeepCopy(),
|
||||
Platforms: deepcopy.Slice(t.Platforms),
|
||||
Location: t.Location.DeepCopy(),
|
||||
Requires: t.Requires.DeepCopy(),
|
||||
|
@@ -136,7 +136,6 @@ func Read(
|
||||
}
|
||||
task.IncludeVars.Merge(include.Vars)
|
||||
task.IncludedTaskfileVars = includedTaskfile.Vars
|
||||
task.IncludedTaskfile = &include
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user