rivox 1.0.0

Universal polyglot build coordination layer for Python, Rust, and Node monorepos
Documentation
use super::SandboxExecutor;
use anyhow::{Context, Result};
use std::path::Path;
use std::process::{Command, Output};

pub struct FallbackSandbox;

impl SandboxExecutor for FallbackSandbox {
    fn name(&self) -> &'static str {
        "fallback-unsandboxed"
    }

    fn execute(
        &self,
        command: &str,
        args: &[&str],
        work_dir: &Path,
        _allow_network: bool,
    ) -> Result<Output> {
        let output = Command::new(command)
            .args(args)
            .current_dir(work_dir)
            .output()
            .with_context(|| format!("Fallback process execution failed for {}", command))?;

        Ok(output)
    }
}