pub struct WrapCommand { /* private fields */ }Expand description
A git command wrapper and manager
Implementations§
Source§impl WrapCommand
impl WrapCommand
Sourcepub fn current_dir(&self, dir: &str) -> Self
pub fn current_dir(&self, dir: &str) -> Self
Set this WrapCommand current_dir to [dir] When [current_dir] is set, the command working directory is set to it at run.
Sourcepub fn add_option(&self, arg: FnOptionArg) -> Self
pub fn add_option(&self, arg: FnOptionArg) -> Self
Includes a new git command option
Sourcepub fn add_options<I>(&self, args: I) -> Selfwhere
I: IntoIterator<Item = FnOptionArg>,
pub fn add_options<I>(&self, args: I) -> Selfwhere
I: IntoIterator<Item = FnOptionArg>,
Includes several new git command options at once
Trait Implementations§
Source§impl Clone for WrapCommand
impl Clone for WrapCommand
Source§fn clone(&self) -> WrapCommand
fn clone(&self) -> WrapCommand
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WrapCommand
impl !RefUnwindSafe for WrapCommand
impl !Send for WrapCommand
impl !Sync for WrapCommand
impl Unpin for WrapCommand
impl !UnwindSafe for WrapCommand
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