fix: align command schema definitions with the parser (#2967)

This commit is contained in:
Valentin Maerten
2026-08-10 20:25:05 +02:00
committed by GitHub
parent 49eea5352c
commit 65471a2ef8

View File

@@ -349,6 +349,10 @@
"description": "Hides task name and command from output. The command's output will still be redirected to `STDOUT` and `STDERR`.",
"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": {
"description": "A shell command to evaluate. If the exit code is non-zero, the command is skipped.",
"type": "string"
@@ -383,7 +387,7 @@
}
},
"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"
},
"platforms": {
@@ -442,13 +446,31 @@
"description": "Silent mode disables echoing of command before Task runs it",
"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": {
"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"
},
"platforms": {
"description": "Specifies which platforms the command should be run on.",
"$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,
@@ -473,7 +495,7 @@
"type": "boolean"
},
"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"
},
"platforms": {