tusk.yml
tusk CLI configuration file
| Type | object |
|---|---|
| File match |
tusk.yml
tusk.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/tusk-yml/latest.json |
| Source | https://raw.githubusercontent.com/rliebz/tusk/main/tusk.schema.json |
Validate with Lintel
npx @lintel/lintel check
Properties
The files to load environment variables from.
If no value is specified, environment variables will be read from an optional .env file automatically.
The interpreter to use for commands. The interpreter is specified as an executable, which can either be an absolute path or available on the user's PATH, followed by a series of optional arguments. The commands specified in individual tasks will be passed as the final argument.
The alias name to display in help text when using shell aliases to create a custom named CLI application.
The set of command-line options that may be provided to the task.
The list of defined tasks available.
The usage text to display in help text when using shell aliases to create a custom named CLI application.
Definitions
The set of command-line arguments that must be provided to the task.
The command or commands to execute using the global interpreter.
The command to execute using the global interpreter.
The default value to use if the value is not otherwise set.
If multiple values are provided, the first when that evaluates to true will be used as the default value, with an omitted when always considered true.
A default value to use if the value is not otherwise set.
If a when clause is provided, the value will be used if and only if the condition evaluates to true.
A file to load environment variables from. File paths specified are relative to the configuration file.
The files to load environment variables from.
If no value is specified, environment variables will be read from an optional .env file automatically.
A command-line option for the task. Options may be set by CLI flag, environment variable, or a configured default value, in that order.
The default value to use if the value is not otherwise set.
If multiple values are provided, the first when that evaluates to true will be used as the default value, with an omitted when always considered true.
An environment variable that can be used to set the value.
Whether the option is configurable by CLI or environment variable.
The text to use for interpolation for boolean values.
The one-letter option name. Short flags can be passed using a single hyphen (e.g., -a) or combined with other short flags (e.g., -abc).
The type of the value.
A one-line summary of the option.
A predefined set of acceptable values to provide for the option.
The set of command-line options that may be provided to the task.
The behavior of the task.
The environment variables to either set or unset.
A sub-task to run as a part of the outer task definition.
The task definition.
The relative file path to the yaml task definition.
The set of command-line arguments that must be provided to the task.
The full description of the task. This may be a multi-line value.
The set of command-line options that may be provided to the task.
Whether the task can be ran directly.
Whether to silence the text/hint before execution. Command output will still be printed.
A one-line summary of the task.
The list of defined tasks available.
The type of the value.
The value of an arg or option.
A set of possible values for an arg or option.
A condition that controls whether its outer clause runs or not. Each individual item in the list of when clauses must pass for the check to be considered successful.