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

This commit is contained in:
2025-06-15 22:12:15 +02:00
parent 3a6bde02d5
commit f0d7636cda
10 changed files with 287 additions and 149 deletions

View File

@@ -5,10 +5,11 @@
mod buildah;
mod core;
mod error;
pub mod error;
mod git;
mod nerdctl;
mod os;
mod platform;
mod postgresclient;
mod process;
mod redisclient;
@@ -182,7 +183,10 @@ pub fn register(engine: &mut Engine) -> Result<(), Box<rhai::EvalAltResult>> {
// Register PostgreSQL client module functions
postgresclient::register_postgresclient_module(engine)?;
// Register utility functions
// Register Platform module functions
platform::register(engine);
// Register utility functions
engine.register_fn("is_def_fn", |_name: &str| -> bool {
// This is a utility function to check if a function is defined in the engine
// For testing purposes, we'll just return true