pub struct BranchCliHandler { /* private fields */ }
Expand description
CLI handler for branch operations
Implementations§
Source§impl BranchCliHandler
impl BranchCliHandler
Sourcepub fn handle_new_branch(
&self,
name: String,
from: Option<String>,
) -> Result<String>
pub fn handle_new_branch( &self, name: String, from: Option<String>, ) -> Result<String>
Handle new branch creation command
Sourcepub fn handle_clean_branches(&self, dry_run: bool) -> Result<String>
pub fn handle_clean_branches(&self, dry_run: bool) -> Result<String>
Handle clean branches command
Sourcepub fn handle_switch_recent(&self) -> Result<String>
pub fn handle_switch_recent(&self) -> Result<String>
Handle switch recent command
Auto Trait Implementations§
impl Freeze for BranchCliHandler
impl RefUnwindSafe for BranchCliHandler
impl Send for BranchCliHandler
impl Sync for BranchCliHandler
impl Unpin for BranchCliHandler
impl UnwindSafe for BranchCliHandler
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