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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user