mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
feat(prompts): add ability for tasks to prompt user pre execution (#1163)
This commit is contained in:
16
testdata/prompt/Taskfile.yml
vendored
Normal file
16
testdata/prompt/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
version: 3
|
||||
tasks:
|
||||
foo:
|
||||
prompt: Do you want to continue?
|
||||
cmds:
|
||||
- echo 'foo'
|
||||
|
||||
bar:
|
||||
cmds:
|
||||
- task: show-prompt
|
||||
|
||||
show-prompt:
|
||||
summary: some text for the summary
|
||||
prompt: Do you want to continue?
|
||||
cmds:
|
||||
- echo 'show-prompt'
|
Reference in New Issue
Block a user