...
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run

This commit is contained in:
2025-06-15 21:50:10 +02:00
parent 66d5c8588a
commit 3a7b323f9a
5 changed files with 110 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
//! allowing SAL functions to be called from Rhai scripts.
mod buildah;
mod core;
mod error;
mod git;
mod nerdctl;
@@ -140,6 +141,9 @@ pub use os::copy as os_copy;
/// let result = engine.eval::<i64>("exist('some_file.txt')").unwrap();
/// ```
pub fn register(engine: &mut Engine) -> Result<(), Box<rhai::EvalAltResult>> {
// Register Core module functions
core::register_core_module(engine)?;
// Register OS module functions
os::register_os_module(engine)?;