"description":"A list of sources to check before running this task. Relevant for `checksum` and `timestamp` methods. Can be file paths or star globs.",
"description":"A list of commands to check if this task should run. The task is skipped otherwise. This overrides `method`, `sources` and `generates`.",
"description":"Enables Bash shell options for all of a task's commands. See https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html",
"description":"Hides task name and command from output. The command's output will still be redirected to `STDOUT` and `STDERR`. When combined with the `--list` flag, task descriptions will be hidden.",
"type":"boolean",
"default":false
},
"interactive":{
"description":"Tells task that the command is interactive.",
"type":"boolean",
"default":false
},
"internal":{
"description":"Stops a task from being callable on the command line. It will also be omitted from the output when used with `--list`.",
"type":"boolean",
"default":false
},
"method":{
"description":"Defines which method is used to check the task is up-to-date. `timestamp` will compare the timestamp of the sources and generates files. `checksum` will check the checksum (You probably want to ignore the .task folder in your .gitignore file). `none` skips any validation and always run the task.",
"type":"string",
"enum":["none","checksum","timestamp"],
"default":"none"
},
"prefix":{
"description":"Defines a string to prefix the output of tasks running in parallel. Only used when the output mode is `prefixed`.",
"type":"string"
},
"ignore_error":{
"description":"Continue execution if errors happen while executing commands.",
"type":"boolean"
},
"run":{
"description":"Specifies whether the task should run again or not if called more than once. Available options: `always`, `once` and `when_changed`.",
"$ref":"#/definitions/run"
},
"platforms":{
"description":"Specifies which platforms the task should be run on.",
"description":"Silent mode disables echoing of command before Task runs it",
"type":"boolean"
},
"task":{
"description":"Task to run",
"type":"string"
},
"vars":{
"description":"Values passed to the task called",
"$ref":"#/definitions/vars"
}
},
"oneOf":[
{"required":["cmd"]},
{"required":["task"]}
],
"additionalProperties":false,
"required":["for"]
},
"for_list":{
"description":"A list of values to iterate over",
"type":"array",
"items":{
"type":"string"
}
},
"for_attribute":{
"description":"The task attribute to iterate over",
"type":"string",
"enum":["sources"]
},
"for_var":{
"description":"Which variables to iterate over. The variable will be split using any whitespace character by default. This can be changed by using the `split` attribute.",
"type":"object",
"properties":{
"var":{
"description":"Name of the variable to iterate over",
"type":"string"
},
"split":{
"description":"String to split the variable on",
"type":"string"
},
"as":{
"description":"What the loop variable should be named",
"description":"Defines how the STDOUT and STDERR are printed when running tasks in parallel. The interleaved output prints lines in real time (default). The group output will print the entire output of a command once, after it finishes, so you won't have live feedback for commands that take a long time to run. The prefix output will prefix every line printed by a command with [task-name] as the prefix, but you can customize the prefix for a command with the prefix: attribute.",
"description":"The path for the Taskfile or directory to be included. If a directory, Task will look for files named `Taskfile.yml` or `Taskfile.yaml` inside that directory. If a relative path, resolved relative to the directory containing the including Taskfile.",
"description":"If `true`, no errors will be thrown if the specified file does not exist.",
"type":"boolean"
},
"internal":{
"description":"Stops any task in the included Taskfile from being callable on the command line. These commands will also be omitted from the output when used with `--list`.",
"type":"boolean"
},
"aliases":{
"description":"Alternative names for the namespace of the included Taskfile.",
"type":"array",
"items":{
"type":"string"
}
},
"vars":{
"description":"A set of variables to apply to the included Taskfile.",
"description":"Enables POSIX shell options for all commands in the Taskfile. See https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html",
"description":"Enables Bash shell options for all commands in the Taskfile. See https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html",
"description":"Sets a different watch interval when using `--watch`, the default being 5 seconds. This string should be a valid Go duration: https://pkg.go.dev/time#ParseDuration.",