mirror of
https://github.com/go-task/task.git
synced 2025-03-17 21:08:01 +02:00
Fix: Cannot use splitArgs and splitLines in for-loops (#1823)
* Update variables.go Probably solves https://github.com/go-task/task/issues/1822 * add type casting * reorder to look better * add suport for []int functions (until, untilStep)
This commit is contained in:
parent
7e6577eb5f
commit
cb07189bab
@ -309,6 +309,10 @@ func itemsFromFor(
|
||||
} else {
|
||||
values = asAnySlice(strings.Fields(value))
|
||||
}
|
||||
case []string:
|
||||
values = asAnySlice(value)
|
||||
case []int:
|
||||
values = asAnySlice(value)
|
||||
case []any:
|
||||
values = value
|
||||
case map[string]any:
|
||||
|
Loading…
x
Reference in New Issue
Block a user