pub struct InstallationUtils;Expand description
Common utilities for tool installation
Implementations§
Source§impl InstallationUtils
impl InstallationUtils
Sourcepub fn execute_command(command: &str, args: &[&str]) -> Result<bool>
pub fn execute_command(command: &str, args: &[&str]) -> Result<bool>
Execute a command and return success status
Sourcepub fn is_command_available(command: &str) -> bool
pub fn is_command_available(command: &str) -> bool
Check if a command is available in PATH
Sourcepub fn get_user_bin_dir() -> PathBuf
pub fn get_user_bin_dir() -> PathBuf
Get platform-specific installation directory
Sourcepub fn ensure_dir_exists(path: &Path) -> Result<()>
pub fn ensure_dir_exists(path: &Path) -> Result<()>
Create directory if it doesn’t exist
Auto Trait Implementations§
impl Freeze for InstallationUtils
impl RefUnwindSafe for InstallationUtils
impl Send for InstallationUtils
impl Sync for InstallationUtils
impl Unpin for InstallationUtils
impl UnwindSafe for InstallationUtils
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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