1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

feat: for supports variables and lists of any type

This commit is contained in:
Pete Davison
2023-11-30 11:32:53 +00:00
parent 1a12b94bd3
commit 4a0414274f
2 changed files with 25 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ import (
type For struct {
From string
List []string
List []any
Var string
Split string
As string
@@ -28,7 +28,7 @@ func (f *For) UnmarshalYAML(node *yaml.Node) error {
return nil
case yaml.SequenceNode:
var list []string
var list []any
if err := node.Decode(&list); err != nil {
return err
}