1
0
mirror of https://github.com/go-task/task.git synced 2025-11-29 22:48:03 +02:00

feat: option to ensure variable is within the list of values (#1827)

This commit is contained in:
Valentin Maerten
2024-10-18 18:16:57 +02:00
committed by GitHub
parent 9a7e79258c
commit a35910429c
9 changed files with 217 additions and 24 deletions

18
testdata/requires/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
version: '3'
tasks:
default:
- task: missing-var
missing-var:
requires:
vars:
- foo
cmd: echo "{{.foo}}"
validation-var:
requires:
vars:
- name: foo
enum: ['one', 'two']