Skip to main content

HookRunner

Trait HookRunner 

Source
pub trait HookRunner {
    // Required method
    fn run(&self, command: &str, ctx: &HookContext) -> Result<i32>;
}
Expand description

Runs hook commands. Abstracted so tests can inject a fake.

Required Methods§

Source

fn run(&self, command: &str, ctx: &HookContext) -> Result<i32>

Runs command with the hook context, returning its exit code.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§