pub struct ExecAction { /* private fields */ }Expand description
ExecAction Installs software using homebrew.
Implementations§
Source§impl ExecAction
impl ExecAction
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 Action for ExecAction
impl Action for ExecAction
Source§fn skip_in_ci(&self) -> bool
fn skip_in_ci(&self) -> bool
Whether to skip this action in Continuous Integration environments. Read more
Source§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 Debug for ExecAction
impl Debug for ExecAction
impl Eq for ExecAction
Source§impl PartialEq for ExecAction
impl PartialEq for ExecAction
Source§fn eq(&self, other: &ExecAction) -> bool
fn eq(&self, other: &ExecAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExecAction
Auto Trait Implementations§
impl Freeze for ExecAction
impl RefUnwindSafe for ExecAction
impl Send for ExecAction
impl Sync for ExecAction
impl Unpin for ExecAction
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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