This commit is contained in:
@@ -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)?;
|
||||
|
||||
|
Reference in New Issue
Block a user