CertWatchtower.psm1
|
# CertWatchtower root module: dot-sources all public and private functions. Set-StrictMode -Version Latest $public = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public') -Filter '*.ps1' -ErrorAction SilentlyContinue) $private = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Private') -Filter '*.ps1' -ErrorAction SilentlyContinue) foreach ($file in @($private + $public)) { try { . $file.FullName } catch { throw "Failed to load $($file.FullName): $_" } } Export-ModuleMember -Function $public.BaseName |