use rhai::{Engine, EvalAltResult};
pub use crate::buildah::rhai as buildah;
pub use crate::cloudhv::script as cloudhv;
pub use crate::nerdctl::rhai as nerdctl;
pub use crate::qcow2::rhai as qcow2;
pub use crate::virt_what::rhai as virt_what;
#[cfg(target_os = "linux")]
pub use crate::virtiofsd::rhai as virtiofsd;
pub use buildah::{Bah, bah_fluent_new_with_executor};
pub fn register(engine: &mut Engine) -> Result<(), Box<EvalAltResult>> {
buildah::register_bah_module(engine)?;
nerdctl::register_nerdctl_module(engine)?;
qcow2::register_qcow2_module(engine)?;
cloudhv::register_cloudhv_module(engine)?;
virt_what::register_virtwhat_module(engine)?;
#[cfg(target_os = "linux")]
virtiofsd::register_virtiofsd_module(engine)?;
Ok(())
}
pub fn register_virt_module(engine: &mut Engine) -> Result<(), Box<EvalAltResult>> {
register(engine)
}