implemented zinit-client for integration with Rhai-scripts

This commit is contained in:
Maxime Van Hees
2025-05-08 17:03:00 +02:00
parent 2cd9faf4fa
commit 61bd58498a
6 changed files with 611 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ mod nerdctl;
mod git;
mod text;
mod rfs;
mod zinit;
#[cfg(test)]
mod tests;
@@ -60,6 +61,9 @@ pub use rfs::register as register_rfs_module;
pub use git::register_git_module;
pub use crate::git::{GitTree, GitRepo};
// Re-export zinit module
pub use zinit::register_zinit_module;
// Re-export text module
pub use text::register_text_module;
// Re-export text functions directly from text module
@@ -110,6 +114,9 @@ pub fn register(engine: &mut Engine) -> Result<(), Box<rhai::EvalAltResult>> {
// Register Git module functions
git::register_git_module(engine)?;
// Register Zinit module functions
zinit::register_zinit_module(engine)?;
// Register Text module functions
text::register_text_module(engine)?;