Struct dotfiles_actions::exec::action::ExecAction
source · pub struct ExecAction<'a> { /* private fields */ }
Expand description
ExecAction Installs software using homebrew.
Implementations§
source§impl<'a> ExecAction<'a>
impl<'a> ExecAction<'a>
sourcepub fn new(
skip_in_ci: bool,
command: String,
description: Option<String>,
echo: bool,
current_dir: &Path
) -> Result<Self, DotfilesError>
pub fn new( skip_in_ci: bool, command: String, description: Option<String>, echo: bool, current_dir: &Path ) -> Result<Self, DotfilesError>
Create a new Exec Action that will run from the parent directory of the config file
sourcepub fn description(&self) -> Option<&String>
pub fn description(&self) -> Option<&String>
Description for the command to run.
Trait Implementations§
source§impl<'a> Action<'a> for ExecAction<'a>
impl<'a> Action<'a> for ExecAction<'a>
source§impl<'a> ConditionalAction<'a> for ExecAction<'a>
impl<'a> ConditionalAction<'a> for ExecAction<'a>
source§fn skip_in_ci(&self) -> bool
fn skip_in_ci(&self) -> bool
Whether to skip this action in Continuous Integration environments. Read more
§fn check_conditions_and_execute(&self) -> Result<(), DotfilesError>
fn check_conditions_and_execute(&self) -> Result<(), DotfilesError>
Checks that the conditions allow for executing this action, and if so executes it according to
[execute(&self)]. Read more
source§impl<'a> Debug for ExecAction<'a>
impl<'a> Debug for ExecAction<'a>
source§impl<'a> PartialEq for ExecAction<'a>
impl<'a> PartialEq for ExecAction<'a>
source§fn eq(&self, other: &ExecAction<'a>) -> bool
fn eq(&self, other: &ExecAction<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for ExecAction<'a>
impl<'a> StructuralPartialEq for ExecAction<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExecAction<'a>
impl<'a> RefUnwindSafe for ExecAction<'a>
impl<'a> Send for ExecAction<'a>
impl<'a> Sync for ExecAction<'a>
impl<'a> Unpin for ExecAction<'a>
impl<'a> UnwindSafe for ExecAction<'a>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more