Skip to main content

CommandRunner

Type Alias CommandRunner 

Source
pub type CommandRunner = Arc<dyn Fn(&[String]) -> Result<()> + Send + Sync>;
Expand description

Runs the upgrade command: argv in, success or the reason it failed out.

Injected rather than called directly so the tests assert which command would run without spawning anything. Mirrors the BrowserOpener and SeedCommandRunner seams.

Aliased Typeยง

pub struct CommandRunner { /* private fields */ }