pub struct PartialTaskOptionsConfig {Show 29 fields
pub affected_files: Option<TaskOptionAffectedFilesEntry>,
pub allow_failure: Option<bool>,
pub cache: Option<TaskOptionCache>,
pub cache_key: Option<String>,
pub cache_lifetime: Option<String>,
pub env_file: Option<TaskOptionEnvFile>,
pub infer_inputs: Option<bool>,
pub interactive: Option<bool>,
pub internal: Option<bool>,
pub merge: Option<TaskMergeStrategy>,
pub merge_args: Option<TaskMergeStrategy>,
pub merge_deps: Option<TaskMergeStrategy>,
pub merge_env: Option<TaskMergeStrategy>,
pub merge_inputs: Option<TaskMergeStrategy>,
pub merge_outputs: Option<TaskMergeStrategy>,
pub merge_toolchains: Option<TaskMergeStrategy>,
pub mutex: Option<String>,
pub os: Option<OneOrMany<TaskOperatingSystem>>,
pub output_style: Option<TaskOutputStyle>,
pub persistent: Option<bool>,
pub priority: Option<TaskPriority>,
pub retry_count: Option<u8>,
pub run_deps_in_parallel: Option<bool>,
pub run_in_ci: Option<TaskOptionRunInCI>,
pub run_from_workspace_root: Option<bool>,
pub shell: Option<bool>,
pub timeout: Option<u64>,
pub unix_shell: Option<TaskUnixShell>,
pub windows_shell: Option<TaskWindowsShell>,
}Expand description
Options to control task inheritance, execution, and more.
Fields§
§affected_files: Option<TaskOptionAffectedFilesEntry>The pattern in which affected files will be passed to the task.
allow_failure: Option<bool>Allow the task to fail without failing the entire action pipeline. @since 1.13.0
cache: Option<TaskOptionCache>Cache the outputs of the task for incremental builds.
Defaults to true if outputs are configured for the task.
cache_key: Option<String>A custom key to include in the cache hashing process. Can be used to invalidate local and remote caches.
cache_lifetime: Option<String>Lifetime to cache the task itself, in the format of “1h”, “30m”, etc. If not defined, caches live forever, or until inputs change. @since 1.29.0
env_file: Option<TaskOptionEnvFile>Loads and sets environment variables from the .env file(s) when
running the task.
infer_inputs: Option<bool>Automatically infer inputs from file groups or environment variables
that were utilized within command, script, args, and env.
@since 1.31.0
interactive: Option<bool>Marks the task as interactive, so that it will run in isolation, and have direct access to stdin. @since 1.12.0
internal: Option<bool>Marks the task as internal, which disables it from being ran from the command line, but can still be depended on by other tasks. @since 1.23.0
merge: Option<TaskMergeStrategy>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.
merge_args: Option<TaskMergeStrategy>The strategy to use when merging args with an inherited task.
merge_deps: Option<TaskMergeStrategy>The strategy to use when merging deps with an inherited task.
merge_env: Option<TaskMergeStrategy>The strategy to use when merging env with an inherited task.
merge_inputs: Option<TaskMergeStrategy>The strategy to use when merging inputs with an inherited task.
merge_outputs: Option<TaskMergeStrategy>The strategy to use when merging outputs with an inherited task.
merge_toolchains: Option<TaskMergeStrategy>The strategy to use when merging toolchains with an inherited task.
@since 2.0.0
mutex: Option<String>Creates an exclusive lock on a virtual resource, preventing other tasks using the same resource from running concurrently. @since 1.24.0
os: Option<OneOrMany<TaskOperatingSystem>>The operating system in which to only run this task on.
output_style: Option<TaskOutputStyle>The style in which task output will be printed to the console.
persistent: Option<bool>Marks the task as persistent (continuously running). This is ideal for watchers, servers, or never-ending processes. @since 1.6.0
priority: Option<TaskPriority>Marks the task with a certain priority, which determines the order in which it is ran within the action pipeline.
retry_count: Option<u8>The number of times a failing task will be retried to succeed.
run_deps_in_parallel: Option<bool>Runs direct task dependencies (via deps) in sequential order.
This does not apply to indirect or transient dependencies.
run_in_ci: Option<TaskOptionRunInCI>Whether to run the task in CI or not, when executing moon ci,
moon check, or moon run.
run_from_workspace_root: Option<bool>Runs the task from the workspace root, instead of the project root.
shell: Option<bool>Runs the task within a shell. When not defined, runs the task
directly while relying on native PATH resolution.
timeout: Option<u64>The maximum time in seconds that a task can run before being cancelled.
unix_shell: Option<TaskUnixShell>The shell to run the task in when on a Unix-based machine. @since 1.21.0
windows_shell: Option<TaskWindowsShell>The shell to run the task in when on a Windows machine. @since 1.21.0
Trait Implementations§
Source§impl Clone for PartialTaskOptionsConfig
impl Clone for PartialTaskOptionsConfig
Source§fn clone(&self) -> PartialTaskOptionsConfig
fn clone(&self) -> PartialTaskOptionsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PartialTaskOptionsConfig
impl Debug for PartialTaskOptionsConfig
Source§impl Default for PartialTaskOptionsConfig
impl Default for PartialTaskOptionsConfig
Source§fn default() -> PartialTaskOptionsConfig
fn default() -> PartialTaskOptionsConfig
Source§impl<'de> Deserialize<'de> for PartialTaskOptionsConfigwhere
PartialTaskOptionsConfig: Default,
impl<'de> Deserialize<'de> for PartialTaskOptionsConfigwhere
PartialTaskOptionsConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialConfig for PartialTaskOptionsConfig
impl PartialConfig for PartialTaskOptionsConfig
type Context = ()
Source§fn default_values(context: &Self::Context) -> Result<Option<Self>, ConfigError>
fn default_values(context: &Self::Context) -> Result<Option<Self>, ConfigError>
Source§fn env_values() -> Result<Option<Self>, ConfigError>
fn env_values() -> Result<Option<Self>, ConfigError>
Source§fn extends_from(&self) -> Option<ExtendsFrom>
fn extends_from(&self) -> Option<ExtendsFrom>
#[setting(extend)], this returns
ExtendsFrom with the extended sources, either a list of strings or a single string.
When no setting is extendable, this returns None.Source§fn finalize(self, context: &Self::Context) -> Result<Self, ConfigError>
fn finalize(self, context: &Self::Context) -> Result<Self, ConfigError>
PartialConfig::default_values will be applied first, followed
by merging the current partial, and lastly environment variable values from
PartialConfig::env_values.Source§impl PartialEq for PartialTaskOptionsConfig
impl PartialEq for PartialTaskOptionsConfig
Source§impl Schematic for PartialTaskOptionsConfig
impl Schematic for PartialTaskOptionsConfig
Source§fn schema_name() -> Option<String>
fn schema_name() -> Option<String>
Source§fn build_schema(schema: SchemaBuilder) -> Schema
fn build_schema(schema: SchemaBuilder) -> Schema
Source§impl Serialize for PartialTaskOptionsConfig
impl Serialize for PartialTaskOptionsConfig
impl StructuralPartialEq for PartialTaskOptionsConfig
Auto Trait Implementations§
impl Freeze for PartialTaskOptionsConfig
impl RefUnwindSafe for PartialTaskOptionsConfig
impl Send for PartialTaskOptionsConfig
impl Sync for PartialTaskOptionsConfig
impl Unpin for PartialTaskOptionsConfig
impl UnsafeUnpin for PartialTaskOptionsConfig
impl UnwindSafe for PartialTaskOptionsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more