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:
18
testdata/requires/Taskfile.yml
vendored
Normal file
18
testdata/requires/Taskfile.yml
vendored
Normal 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']
|
||||
Reference in New Issue
Block a user