Struct broot::shell_install::ShellInstall
source · pub struct ShellInstall {
pub should_quit: bool,
/* private fields */
}
Fields§
§should_quit: bool
Implementations§
source§impl ShellInstall
impl ShellInstall
pub fn new(force_install: bool) -> Self
sourcepub fn print(shell: &str) -> Result<(), ProgramError>
pub fn print(shell: &str) -> Result<(), ProgramError>
write on stdout the script building the function for the given shell
sourcepub fn check(&mut self) -> Result<(), ShellInstallError>
pub fn check(&mut self) -> Result<(), ShellInstallError>
check whether the shell function is installed an up to date, install it if it wasn’t refused before or if broot is launched with –install.
sourcepub fn comment_error(&self, err: &ShellInstallError)
pub fn comment_error(&self, err: &ShellInstallError)
print some additional information on the error (typically before the error itself is dumped)
pub fn remove(&self, path: &Path) -> Result<(), ShellInstallError>
Auto Trait Implementations§
impl RefUnwindSafe for ShellInstall
impl Send for ShellInstall
impl Sync for ShellInstall
impl Unpin for ShellInstall
impl UnwindSafe for ShellInstall
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