Struct cli::types::ConfigSection
source · pub struct ConfigSection {
pub skip_core_tasks: Option<bool>,
pub modify_core_tasks: Option<ModifyConfig>,
pub init_task: Option<String>,
pub end_task: Option<String>,
pub on_error_task: Option<String>,
pub load_script: Option<Vec<String>>,
pub linux_load_script: Option<Vec<String>>,
pub windows_load_script: Option<Vec<String>>,
pub mac_load_script: Option<Vec<String>>,
}Expand description
Holds the configuration found in the makefile toml config section.
Fields§
§skip_core_tasks: Option<bool>If true, the default core tasks will not be loaded
modify_core_tasks: Option<ModifyConfig>Modify core tasks config
init_task: Option<String>Init task name which will be invoked at the start of every run
end_task: Option<String>End task name which will be invoked at the end of every run
on_error_task: Option<String>The name of the task to run in case of any error during the invocation of the flow
load_script: Option<Vec<String>>Invoked while loading the descriptor file but before loading any extended descriptor
linux_load_script: Option<Vec<String>>acts like load_script if runtime OS is Linux (takes precedence over load_script)
windows_load_script: Option<Vec<String>>acts like load_script if runtime OS is Windows (takes precedence over load_script)
mac_load_script: Option<Vec<String>>acts like load_script if runtime OS is Mac (takes precedence over load_script)
Implementations§
source§impl ConfigSection
impl ConfigSection
sourcepub fn new() -> ConfigSection
pub fn new() -> ConfigSection
Creates and returns a new instance.
sourcepub fn apply(self: &mut ConfigSection, modify_config: &ModifyConfig)
pub fn apply(self: &mut ConfigSection, modify_config: &ModifyConfig)
Apply modifications
sourcepub fn extend(self: &mut ConfigSection, extended: &mut ConfigSection)
pub fn extend(self: &mut ConfigSection, extended: &mut ConfigSection)
sourcepub fn get_load_script(self: &ConfigSection) -> Option<Vec<String>>
pub fn get_load_script(self: &ConfigSection) -> Option<Vec<String>>
Returns the load script based on the current platform
Trait Implementations§
source§impl Clone for ConfigSection
impl Clone for ConfigSection
source§fn clone(&self) -> ConfigSection
fn clone(&self) -> ConfigSection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ConfigSection
impl Debug for ConfigSection
source§impl<'de> Deserialize<'de> for ConfigSection
impl<'de> Deserialize<'de> for ConfigSection
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>,
Auto Trait Implementations§
impl Freeze for ConfigSection
impl RefUnwindSafe for ConfigSection
impl Send for ConfigSection
impl Sync for ConfigSection
impl Unpin for ConfigSection
impl UnwindSafe for ConfigSection
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)