hermes_runtime_components/impls/os/
exec_command.rs1use crate::traits::os::exec_command::{CanExecCommandWithEnvs, CommandExecutor, ExecOutput};
2
3pub struct ExecCommandWithNoEnv;
4
5impl<Runtime> CommandExecutor<Runtime> for ExecCommandWithNoEnv
6where
7 Runtime: CanExecCommandWithEnvs,
8{
9 async fn exec_command(
10 runtime: &Runtime,
11 command_path: &Runtime::FilePath,
12 args: &[&str],
13 ) -> Result<ExecOutput, Runtime::Error> {
14 runtime
15 .exec_command_with_envs(command_path, args, &[])
16 .await
17 }
18}