run command runs one or more tasks from the playbook files in the target directory.
Usage
default.
Arguments
One or more task names to run. Each name must match a
task block declared in the playbook. Errand resolves all required tasks in the correct order.Flags
Set a variable value. Repeat the flag to set multiple variables.
Maximum number of tasks to run at the same time.
1(default) runs tasks sequentially.- Any positive number limits concurrent execution to that count.
0runs all independent tasks at the same time with no limit.
Print each command before running it. Set to
false to suppress command output:Forward the exit code of failed tasks. When enabled,
errand run exits with the same code as the first failed task. By default it exits with 1 for any failure.Directory containing the playbook files. Defaults to the current directory.
Examples
Run thedefault task:
Exit codes
| Code | Meaning |
|---|---|
0 | All tasks succeeded or were skipped |
1 | One or more tasks failed (default) |
<n> | Exit code of the failed task (with --exit-code) |