use crate::{KEY, MachineContext};
use capsula_core::context::{ContextErased, ContextFactory};
use capsula_core::error::CoreResult;
use serde_json::Value;
use std::path::Path;
pub struct MachineContextFactory;
impl ContextFactory for MachineContextFactory {
fn key(&self) -> &'static str {
KEY
}
fn create_context(
&self,
_config: &Value,
_project_root: &Path,
) -> CoreResult<Box<dyn ContextErased>> {
Ok(Box::new(MachineContext::default()))
}
}