mirror of
https://github.com/go-task/task.git
synced 2026-07-01 00:24:30 +00:00
committed by
Andrey Nering
parent
0cddd8c167
commit
c42bc6914e
30
docs/static/schema.json
vendored
30
docs/static/schema.json
vendored
@@ -208,6 +208,9 @@
|
||||
{
|
||||
"$ref": "#/definitions/3/task_call"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/3/defer_call"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/3/for_call"
|
||||
}
|
||||
@@ -308,10 +311,6 @@
|
||||
"description": "Prevent command from aborting the execution of task even after receiving a status code of 1",
|
||||
"type": "boolean"
|
||||
},
|
||||
"defer": {
|
||||
"description": "",
|
||||
"type": "boolean"
|
||||
},
|
||||
"platforms": {
|
||||
"description": "Specifies which platforms the command should be run on.",
|
||||
"type": "array",
|
||||
@@ -323,6 +322,29 @@
|
||||
"additionalProperties": false,
|
||||
"required": ["cmd"]
|
||||
},
|
||||
"defer_call": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"defer": {
|
||||
"description": "Run a command when the task completes. This command will run even when the task fails",
|
||||
"anyOf": [
|
||||
"string",
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"task": {
|
||||
"description": "Name of the task to defer",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": ["defer"]
|
||||
},
|
||||
"for_call": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user