1
0
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:
Piotr Stawarski 2024-09-20 19:05:19 +02:00 committed by GitHub
parent 7e6577eb5f
commit cb07189bab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: