exomonad-core 0.1.0

ExoMonad core: effect system, WASM hosting, MCP server, built-in handlers, shared types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Command executor trait for running subprocess commands.

use anyhow::Result;
use std::future::Future;
use std::pin::Pin;

/// Trait for executing commands in a specific directory.
pub trait CommandExecutor: Send + Sync {
    fn exec<'a>(
        &'a self,
        dir: &'a str,
        cmd: &'a [&'a str],
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>;
}