butterflow_runners/lib.rs
1use std::collections::HashMap;
2
3use async_trait::async_trait;
4
5use butterflow_models::Result;
6
7/// Runner trait for executing commands
8#[async_trait]
9pub trait Runner: Send + Sync {
10 /// Run a command
11 async fn run_command(&self, command: &str, env: &HashMap<String, String>) -> Result<String>;
12}
13
14pub mod direct_runner;
15pub mod docker_runner;
16pub mod podman_runner;