1
0
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:
Max Cheetham
2023-06-04 02:33:00 +01:00
committed by GitHub
parent 105756eb27
commit f815ce2901
11 changed files with 244 additions and 17 deletions

16
testdata/prompt/Taskfile.yml vendored Normal file
View 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'