Skip to main content

Git

Trait Git 

Source
pub trait Git {
    // Required method
    fn run(&self, dir: &Path, args: &[&str]) -> GitOutput;
}
Expand description

Anything that can run a git command in a directory.

Required Methods§

Source

fn run(&self, dir: &Path, args: &[&str]) -> GitOutput

Run git -C <dir> <args…> and capture stdout/stderr/exit status.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§