pub trait ProcessRunner: Send + Sync {
// Required method
fn run(
&self,
executable: &str,
args: &[&str],
cwd: Option<&Path>,
) -> Result<ProcessOutput, PluginError>;
}Required Methods§
Sourcefn run(
&self,
executable: &str,
args: &[&str],
cwd: Option<&Path>,
) -> Result<ProcessOutput, PluginError>
fn run( &self, executable: &str, args: &[&str], cwd: Option<&Path>, ) -> Result<ProcessOutput, PluginError>
Run a whitelisted executable and wait for it to finish.