mirror of
https://github.com/go-task/task.git
synced 2026-07-07 22:18:47 +00:00
feat: allow providing single or multi prompts (#1866)
* Add new type to handle single or multi prompts * update docs * apply review
This commit is contained in:
@@ -59,8 +59,18 @@
|
||||
"type": "string"
|
||||
},
|
||||
"prompt": {
|
||||
"description": "A prompt that will be presented before a task is run. Declining will cancel running the current and any subsequent tasks.",
|
||||
"type": "string"
|
||||
"description": "One or more prompts that will be presented before a task is run. Declining will cancel running the current and any subsequent tasks.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": {
|
||||
"description": "A longer description of the task. This is displayed when calling `task --summary [task]`.",
|
||||
|
||||
Reference in New Issue
Block a user