Struct dotfiles_actions::brew::action::BrewAction
source · pub struct BrewAction<'a> { /* private fields */ }
Expand description
BrewAction Installs software using homebrew.
Implementations§
source§impl<'a> BrewAction<'a>
impl<'a> BrewAction<'a>
sourcepub fn skip_in_ci(&self) -> &bool
pub fn skip_in_ci(&self) -> &bool
Skips this action if it is running in a CI environment.
sourcepub fn force_casks(&self) -> &bool
pub fn force_casks(&self) -> &bool
Passes --force
to brew install --cask
.
sourcepub fn adopt_casks(&self) -> &bool
pub fn adopt_casks(&self) -> &bool
when the app is already installed before the cask install.
Trait Implementations§
source§impl Action<'_> for BrewAction<'_>
impl Action<'_> for BrewAction<'_>
source§impl<'a> ConditionalAction<'a> for BrewAction<'a>
impl<'a> ConditionalAction<'a> for BrewAction<'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 BrewAction<'a>
impl<'a> Debug for BrewAction<'a>
source§impl<'a> PartialEq for BrewAction<'a>
impl<'a> PartialEq for BrewAction<'a>
source§fn eq(&self, other: &BrewAction<'a>) -> bool
fn eq(&self, other: &BrewAction<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for BrewAction<'a>
impl<'a> StructuralPartialEq for BrewAction<'a>
Auto Trait Implementations§
impl<'a> Freeze for BrewAction<'a>
impl<'a> RefUnwindSafe for BrewAction<'a>
impl<'a> Send for BrewAction<'a>
impl<'a> Sync for BrewAction<'a>
impl<'a> Unpin for BrewAction<'a>
impl<'a> UnwindSafe for BrewAction<'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