.ern files in the same directory. Errand reads all of them, merges their blocks, and runs the tasks you request.
Block types
A playbook is made up of four block types:errand
Playbook-level settings.
variable
A named input with an optional type and default.
computed
A value derived from an expression at runtime.
task
A named group of shell commands.
errand takes a name label. Names must be unique within each block type:
Evaluation order
Errand processes the playbook in three phases:- Variables are resolved from defaults and
--varflags. - Computed blocks evaluate in dependency order, before any task runs.
- Tasks run in the order their dependencies require, with optional concurrency.
References
Blocks refer to each other with dot notation. Referencing a block creates an implicit dependency: Errand ensures the referenced block runs first.| Reference | Refers to |
|---|---|
var.<name> | A declared variable block |
computed.<name> | A declared computed block |
task.<name> | A declared task block |