TaskOptionsConfig
Index
Properties
affectedFiles
The pattern in which affected files will be passed to the task.
affectedPassInputs
When affected and no files are matching, pass the task inputs
as arguments to the command, instead of .
.
allowFailure
Allows the task to fail without failing the entire pipeline.
cache
Caches the outputs
of the task
cacheLifetime
Lifetime to cache the task itself, in the format of "1h", "30m", etc. If not defined, caches live forever, or until inputs change.
envFile
Loads and sets environment variables from the .env
file when
running the task.
interactive
Marks the task as interactive, so that it will run in isolation, and have direct access to stdin.
internal
Marks the task as internal, which disables it from begin ran from the command line, but can be depended on.
merge
The default strategy to use when merging args
, deps
, env
,
inputs
, or outputs
with an inherited task. Can be overridden
with the other field-specific merge options.
mergeArgs
The strategy to use when merging args
with an inherited task.
mergeDeps
The strategy to use when merging deps
with an inherited task.
mergeEnv
The strategy to use when merging env
with an inherited task.
mergeInputs
The strategy to use when merging inputs
with an inherited task.
mergeOutputs
The strategy to use when merging outputs
with an inherited task.
mutex
Creates an exclusive lock on a virtual resource, preventing other tasks using the same resource from running concurrently.
os
The operating system in which to only run this task on.
outputStyle
The style in which task output will be printed to the console.
persistent
Marks the task as persistent (continuously running). This is ideal for watchers, servers, or never-ending processes.
retryCount
The number of times a failing task will be retried to succeed.
runDepsInParallel
Runs direct task dependencies (via deps
) in sequential order.
This does not apply to indirect or transient dependencies.
runFromWorkspaceRoot
Runs the task from the workspace root, instead of the project root.
runInCI
Whether to run the task in CI or not, when executing moon ci
or moon run
.
shell
Runs the task within a shell. When not defined, runs the task
directly while relying on PATH
resolution.
timeout
The maximum time in seconds that a task can run before being cancelled.
unixShell
The shell to run the task in when on a Unix-based machine.
windowsShell
The shell to run the task in when on a Windows machine.
Options to control task inheritance and execution.