KubeBuddy.psm1

# KubeBuddy.psm1

# Make sure we're in the module directory
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path

# Load all private functions (not exported)
$privateScripts = Get-ChildItem -Path (Join-Path $scriptPath "Private") -Recurse -File
foreach ($script in $privateScripts) {
    . $script.FullName
}

# Load all public functions (exported)
$publicScripts = Get-ChildItem -Path (Join-Path $scriptPath "Public") -Recurse -File
foreach ($script in $publicScripts) {
    . $script.FullName
}

# Export public functions
Export-ModuleMember -Function @('Invoke-KubeBuddy')