PartialTaskOptionsConfig
Index
Properties
optionalaffectedFiles
The pattern in which affected files will be passed to the task.
optionalaffectedPassInputs
When affected and no files are matching, pass the task inputs
as arguments to the command, instead of .
.
optionalallowFailure
Allows the task to fail without failing the entire pipeline.
optionalcache
Caches the outputs
of the task
optionalcacheLifetime
Lifetime to cache the task itself, in the format of "1h", "30m", etc. If not defined, caches live forever, or until inputs change.
optionalenvFile
Loads and sets environment variables from the .env
file when
running the task.
optionalinteractive
Marks the task as interactive, so that it will run in isolation, and have direct access to stdin.
optionalinternal
Marks the task as internal, which disables it from begin ran from the command line, but can be depended on.
optionalmerge
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.
optionalmergeArgs
The strategy to use when merging args
with an inherited task.
optionalmergeDeps
The strategy to use when merging deps
with an inherited task.
optionalmergeEnv
The strategy to use when merging env
with an inherited task.
optionalmergeInputs
The strategy to use when merging inputs
with an inherited task.
optionalmergeOutputs
The strategy to use when merging outputs
with an inherited task.
optionalmutex
Creates an exclusive lock on a virtual resource, preventing other tasks using the same resource from running concurrently.
optionalos
The operating system in which to only run this task on.
optionaloutputStyle
The style in which task output will be printed to the console.
optionalpersistent
Marks the task as persistent (continuously running). This is ideal for watchers, servers, or never-ending processes.
optionalretryCount
The number of times a failing task will be retried to succeed.
optionalrunDepsInParallel
Runs direct task dependencies (via deps
) in sequential order.
This does not apply to indirect or transient dependencies.
optionalrunFromWorkspaceRoot
Runs the task from the workspace root, instead of the project root.
optionalrunInCI
Whether to run the task in CI or not, when executing moon ci
or moon run
.
optionalshell
Runs the task within a shell. When not defined, runs the task
directly while relying on PATH
resolution.
optionaltimeout
The maximum time in seconds that a task can run before being cancelled.
optionalunixShell
The shell to run the task in when on a Unix-based machine.
optionalwindowsShell
The shell to run the task in when on a Windows machine.
Options to control task inheritance and execution.