EdgeProfileSync.psm1
|
#Requires -Version 7.4 Set-StrictMode -Version 3.0 $privateFiles = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Private') -Filter '*.ps1' -ErrorAction SilentlyContinue) $publicFiles = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public') -Filter '*.ps1' -ErrorAction SilentlyContinue) foreach ($file in @($privateFiles + $publicFiles)) { try { . $file.FullName } catch { throw "Failed to import '$($file.FullName)': $($_.Exception.Message)" } } Export-ModuleMember -Function $publicFiles.BaseName |