This commit is contained in:
2025-04-04 21:51:31 +02:00
parent 5b006ff328
commit 9f33c94020
19 changed files with 1221 additions and 88 deletions

View File

@@ -7,6 +7,8 @@ mod error;
mod os;
mod process;
mod buildah;
mod nerdctl;
mod git;
#[cfg(test)]
mod tests;
@@ -35,7 +37,28 @@ pub use process::{
which, kill, process_list, process_get
};
pub use buildah::*;
// Re-export buildah functions
pub use buildah::register_bah_module;
pub use buildah::{
bah_from, bah_run, bah_run_with_isolation, bah_copy, bah_add, bah_commit,
bah_remove, bah_list, bah_build_with_options,
new_commit_options, new_config_options, image_commit_with_options, config_with_options
};
// Re-export nerdctl functions
pub use nerdctl::register_nerdctl_module;
pub use nerdctl::{
nerdctl_run, nerdctl_exec,
nerdctl_copy, nerdctl_stop, nerdctl_remove, nerdctl_list
};
// Re-export git functions
pub use git::register_git_module;
pub use git::{
git_clone, git_list, git_update, git_update_force, git_update_commit,
git_update_commit_push, has_git_changes, find_matching_repos
};
// Rename copy functions to avoid conflicts
pub use os::copy as os_copy;
@@ -67,6 +90,12 @@ pub fn register(engine: &mut Engine) -> Result<(), Box<rhai::EvalAltResult>> {
// Register Buildah module functions
buildah::register_bah_module(engine)?;
// Register Nerdctl module functions
nerdctl::register_nerdctl_module(engine)?;
// Register Git module functions
git::register_git_module(engine)?;
// Future modules can be registered here
Ok(())