pub trait GitClient {
// Required methods
fn clone_repo(&self, url: &str, dest: &Path) -> Result<()>;
fn pull(&self, repo_path: &Path) -> Result<()>;
}Expand description
Abstraction over git operations used by cmx.
The real implementation delegates to git via std::process::Command.
Tests inject a fake that records calls without running git.
Required Methods§
fn clone_repo(&self, url: &str, dest: &Path) -> Result<()>
fn pull(&self, repo_path: &Path) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".