hermes-runtime-components 0.1.0

Implementation of an IBC Relayer in Rust, as a library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::traits::os::exec_command::{CanExecCommandWithEnvs, CommandExecutor, ExecOutput};

pub struct ExecCommandWithNoEnv;

impl<Runtime> CommandExecutor<Runtime> for ExecCommandWithNoEnv
where
    Runtime: CanExecCommandWithEnvs,
{
    async fn exec_command(
        runtime: &Runtime,
        command_path: &Runtime::FilePath,
        args: &[&str],
    ) -> Result<ExecOutput, Runtime::Error> {
        runtime
            .exec_command_with_envs(command_path, args, &[])
            .await
    }
}