//! # herolib-virt
//!
//! Virtualization and containerization tools for building, managing, and deploying
//! containers, virtual machines, filesystem layers, and Kubernetes clusters.
//!
//! ## Features
//!
//! - **Buildah**: OCI/Docker image building with builder pattern API
//! - **Nerdctl**: Container lifecycle management with containerd
//! - **QCOW2**: Disk image management and creation
//! - **Cloud Hypervisor**: Virtual machine management
//! - **Kubernetes**: Cluster management, configuration, and operations
//! - **Cross-Platform**: Works across Windows, macOS, and Linux
//! - **Rhai Integration**: Full support for Rhai scripting language (optional feature)
//! - **Error Handling**: Comprehensive error types and handling
//!
//! ## Modules
//!
//! - [`buildah`]: Container image building with Buildah
//! - [`nerdctl`]: Container management with Nerdctl
//! - [`qcow2`]: QCOW2 disk image management
//! - [`cloudhv`]: Cloud Hypervisor virtual machine management
//! - [`kubernetes`]: Kubernetes cluster management and operations (requires `kubernetes` feature)
//!
//! ## Example
//!
//! ```rust,no_run
//! use herolib_virt::buildah;
//!
//! // Create a container builder
//! let mut builder = buildah::Builder::new("mybuilder", "alpine:latest")?;
//! builder.run("apk add curl")?;
//! let image = builder.commit("myimage")?;
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```

pub mod buildah;
pub mod cloudhv;
pub mod nerdctl;
pub mod qcow2;

#[cfg(feature = "kubernetes")]
pub mod kubernetes;

// Rhai integration - consolidated module
#[cfg(feature = "rhai")]
pub mod rhai;

// Re-export modules from herolib_os for convenience
pub use herolib_os::{os, process};

// Re-export main types and functions for convenience
pub use buildah::{BuildahError, Builder, ContentOperations};
pub use cloudhv::{CloudHvError};
pub use nerdctl::{Container, ContainerStatus, HealthCheck, NerdctlError};
pub use qcow2::{Qcow2Error};

#[cfg(feature = "kubernetes")]
pub use kubernetes::{
    BuildMachine, DevelopmentMachine, KubernetesConfig, KubernetesError, KubernetesManager,
    KubernetesResult, RegistryConfig, RegistryConfigBuilder, RegistryDeploymentResult,
};
