pub struct ExecAction { /* private fields */ }Implementations§
Source§impl ExecAction
impl ExecAction
pub fn new<C: Into<String>>(command: C) -> ExecAction
pub fn args(&self) -> Option<&Vec<String>>
pub fn with_arg<A: Into<String>>(self, arg: A) -> ExecAction
pub fn add_arg<A: Into<String>>(&mut self, arg: A)
pub fn env(&self) -> Option<&LinkedHashMap<String, String>>
pub fn with_environment_variable<K: Into<String>, V: Into<String>>( self, key: K, value: V, ) -> ExecAction
pub fn add_environment_variable<K: Into<String>, V: Into<String>>( &mut self, key: K, value: V, )
pub fn cwd(&self) -> Option<&String>
pub fn with_working_directory<D: Into<String>>(self, directory: D) -> ExecAction
pub fn set_working_directory<D: Into<String>>(&mut self, directory: D)
Trait Implementations§
Source§impl Action for ExecAction
impl Action for ExecAction
fn execute<D: AsRef<Path>>( &self, archetect: &mut Archetect, _archetype: &Archetype, destination: D, _rules_context: &mut RulesContext, _answers: &LinkedHashMap<String, VariableInfo, RandomState>, context: &mut Context, ) -> Result<(), ArchetectError>
Source§impl Clone for ExecAction
impl Clone for ExecAction
Source§fn clone(&self) -> ExecAction
fn clone(&self) -> ExecAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecAction
impl Debug for ExecAction
Source§impl<'de> Deserialize<'de> for ExecAction
impl<'de> Deserialize<'de> for ExecAction
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecAction
impl RefUnwindSafe for ExecAction
impl Send for ExecAction
impl Sync for ExecAction
impl Unpin for ExecAction
impl UnwindSafe for ExecAction
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
Mutably borrows from an owned value. Read more