This commit is contained in:
2025-04-05 11:03:58 +02:00
parent 4be9445702
commit fe7a676cac
11 changed files with 1145 additions and 61 deletions

View File

@@ -9,6 +9,7 @@ mod process;
mod buildah;
mod nerdctl;
mod git;
mod text;
#[cfg(test)]
mod tests;
@@ -56,6 +57,16 @@ pub use nerdctl::{
pub use git::register_git_module;
pub use crate::git::{GitTree, GitRepo};
// Re-export text module
pub use text::register_text_module;
// Re-export text functions directly from text module
pub use crate::text::{
// Fix functions
name_fix, path_fix,
// Dedent functions
dedent, prefix
};
// Rename copy functions to avoid conflicts
pub use os::copy as os_copy;
@@ -89,11 +100,14 @@ pub fn register(engine: &mut Engine) -> Result<(), Box<rhai::EvalAltResult>> {
// Register Nerdctl module functions
nerdctl::register_nerdctl_module(engine)?;
// Register Git module functions
git::register_git_module(engine)?;
// Register Text module functions
text::register_text_module(engine)?;
// Future modules can be registered here
Ok(())
}