Skip to main content

GhCommandRunner

Trait GhCommandRunner 

Source
pub trait GhCommandRunner: Send + Sync {
    // Required method
    fn run(
        &self,
        working_directory: &Path,
        args: &[String],
    ) -> Result<GhCommandOutput, GhCommandError>;
}
Expand description

Injectable gh runner. Fixture runners can assert the exact command and request working directory without requiring a real GitHub installation.

Required Methods§

Source

fn run( &self, working_directory: &Path, args: &[String], ) -> Result<GhCommandOutput, GhCommandError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§