use crate::error::Result;
use crate::value::JsonnetValue;
pub struct RuntimeManager {
}
impl RuntimeManager {
pub fn new() -> Self {
RuntimeManager {}
}
pub fn is_external_function(&self, _name: &str) -> bool {
false
}
pub fn call_external_function(&self, name: &str, _args: Vec<JsonnetValue>) -> Result<JsonnetValue> {
Err(crate::error::JsonnetError::runtime_error(format!("External function '{}' not implemented", name)))
}
}
impl Default for RuntimeManager {
fn default() -> Self {
Self::new()
}
}