butterflow-runners 0.1.1

A self-hostable workflow engine for code transformations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;

use async_trait::async_trait;

use butterflow_models::Result;

/// Runner trait for executing commands
#[async_trait]
pub trait Runner: Send + Sync {
    /// Run a command
    async fn run_command(&self, command: &str, env: &HashMap<String, String>) -> Result<String>;
}

pub mod direct_runner;
pub mod docker_runner;
pub mod podman_runner;