a3s-sandbox 0.1.1

Cross-platform native command sandbox for A3S
Documentation
use crate::policy::SandboxPolicy;
use crate::{CommandOutput, CommandRequest};
use anyhow::{bail, Result};
use std::path::Path;

#[derive(Debug)]
pub(crate) struct PlatformSandbox;

impl PlatformSandbox {
    pub(crate) fn new(_workspace: &Path) -> Result<Self> {
        bail!(
            "the A3S native sandbox is unsupported on {}",
            std::env::consts::OS
        )
    }

    pub(crate) async fn execute(
        &self,
        _policy: &SandboxPolicy,
        _request: CommandRequest,
    ) -> Result<CommandOutput> {
        bail!(
            "the A3S native sandbox is unsupported on {}",
            std::env::consts::OS
        )
    }
}