pub struct GitInvoker { /* private fields */ }Implementations§
Source§impl GitInvoker
impl GitInvoker
pub fn at(cwd: impl Into<PathBuf>) -> Self
pub fn with_env( self, key: impl Into<OsString>, val: impl Into<OsString>, ) -> Self
pub fn cwd(&self) -> &Path
pub fn run_capture<I, S>(&self, args: I) -> OutpostResult<String>
pub fn run_check<I, S>(&self, args: I) -> OutpostResult<()>
pub fn run_status<I, S>(&self, args: I) -> OutpostResult<bool>
Trait Implementations§
Source§impl Clone for GitInvoker
impl Clone for GitInvoker
Source§fn clone(&self) -> GitInvoker
fn clone(&self) -> GitInvoker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitInvoker
impl RefUnwindSafe for GitInvoker
impl Send for GitInvoker
impl Sync for GitInvoker
impl Unpin for GitInvoker
impl UnsafeUnpin for GitInvoker
impl UnwindSafe for GitInvoker
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