Enum broot::shell_install::ShellInstallState
source · pub enum ShellInstallState {
NotInstalled,
Refused,
Obsolete,
UpToDate,
}
Variants§
Implementations§
source§impl ShellInstallState
impl ShellInstallState
pub fn get_refused_path() -> PathBuf
pub fn get_installed_path(version: usize) -> PathBuf
pub fn detect() -> Self
pub fn remove(si: &ShellInstall) -> Result<(), ShellInstallError>
sourcepub fn write(self, si: &ShellInstall) -> Result<(), ShellInstallError>
pub fn write(self, si: &ShellInstall) -> Result<(), ShellInstallError>
write either the “installed” or the “refused” file, or remove those files.
This is useful in installation or test scripts when we don’t want the user to be prompted to install the function, or in case something doesn’t properly work in shell detections
Trait Implementations§
source§impl Clone for ShellInstallState
impl Clone for ShellInstallState
source§fn clone(&self) -> ShellInstallState
fn clone(&self) -> ShellInstallState
Returns a copy 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 ShellInstallState
impl Debug for ShellInstallState
source§impl From<CliShellInstallState> for ShellInstallState
impl From<CliShellInstallState> for ShellInstallState
source§fn from(cs: CliShellInstallState) -> Self
fn from(cs: CliShellInstallState) -> Self
Converts to this type from the input type.