IPAX.psm1

$privateFunctions = Join-Path -Path $PSScriptRoot -ChildPath 'Private'
$publicFunctions = Join-Path -Path $PSScriptRoot -ChildPath 'Public'
$importOK = $true
foreach ($file in Get-ChildItem $privateFunctions -Filter '*.ps1') {
    try {
        . $file.FullName
    } catch {
        $e = "Could not import '$($file.FullName)' with exception: `r`n$($_.Exception.Message)" -as $_.Exception.GetType()
        $importOK = $false
        throw $e
    }
}
if ($importOK) {
    foreach ($file in Get-ChildItem $publicFunctions -Filter '*.ps1') {
        try {
            . $file.FullName
        } catch {
            $e = "Could not import '$($file.FullName)' with exception: `r`n$($_.Exception.Message)" -as $_.Exception.GetType()
            $importOK = $false
            throw $e
        }
    }
}
if ($importOK) {
    Export-ModuleMember -Function 'Resolve-IPv4Address'
    Export-ModuleMember -Function 'Test-IPv4SameSubnet'
}