xkcd.psm1

1
2
3
4
5
6
7
8
9
10
$Public = @( Get-ChildItem -Path "$PSScriptRoot/Public/*.ps1" -Recurse )

@($Public) | ForEach-Object {
    try {
        . $_.FullName
    }
    catch {
        Write-Error -Message "Failed to import function $($_.FullName): $_"
    }
}