mirror of
https://github.com/go-task/task.git
synced 2026-08-29 10:08:27 +02:00
fix: align command schema definitions with the parser (#2967)
This commit is contained in:
@@ -349,6 +349,10 @@
|
|||||||
"description": "Hides task name and command from output. The command's output will still be redirected to `STDOUT` and `STDERR`.",
|
"description": "Hides task name and command from output. The command's output will still be redirected to `STDOUT` and `STDERR`.",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"ignore_error": {
|
||||||
|
"description": "Prevent the command from aborting the execution of the task when it exits with a non-zero status code",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"if": {
|
"if": {
|
||||||
"description": "A shell command to evaluate. If the exit code is non-zero, the command is skipped.",
|
"description": "A shell command to evaluate. If the exit code is non-zero, the command is skipped.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -383,7 +387,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ignore_error": {
|
"ignore_error": {
|
||||||
"description": "Prevent command from aborting the execution of task even after receiving a status code of 1",
|
"description": "Prevent the command from aborting the execution of the task when it exits with a non-zero status code",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"platforms": {
|
"platforms": {
|
||||||
@@ -442,13 +446,31 @@
|
|||||||
"description": "Silent mode disables echoing of command before Task runs it",
|
"description": "Silent mode disables echoing of command before Task runs it",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"set": {
|
||||||
|
"description": "Enables POSIX shell options for this command. See https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/set"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"shopt": {
|
||||||
|
"description": "Enables Bash shell options for this command. See https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/shopt"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ignore_error": {
|
"ignore_error": {
|
||||||
"description": "Prevent command from aborting the execution of task even after receiving a status code of 1",
|
"description": "Prevent the command from aborting the execution of the task when it exits with a non-zero status code",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"platforms": {
|
"platforms": {
|
||||||
"description": "Specifies which platforms the command should be run on.",
|
"description": "Specifies which platforms the command should be run on.",
|
||||||
"$ref": "#/definitions/platforms"
|
"$ref": "#/definitions/platforms"
|
||||||
|
},
|
||||||
|
"if": {
|
||||||
|
"description": "A shell command to evaluate. If the exit code is non-zero, the command is skipped.",
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
@@ -473,7 +495,7 @@
|
|||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"ignore_error": {
|
"ignore_error": {
|
||||||
"description": "Prevent command from aborting the execution of task even after receiving a status code of 1",
|
"description": "Prevent the command from aborting the execution of the task when it exits with a non-zero status code",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"platforms": {
|
"platforms": {
|
||||||
|
|||||||
Reference in New Issue
Block a user