PsDos.Common.psm1
<#
=========================================================================== Organization: Health Catalyst Filename: PsDos.Common.psm1 ------------------------------------------------------------------------- Module Name: PsDos.Common =========================================================================== #> #Get public and private function definition files. $Public = @( Get-ChildItem -Path $PSScriptRoot\Functions\Public -Recurse -Filter *.ps1 -Exclude *.Tests.ps1 -ErrorAction SilentlyContinue ) $Private = @( Get-ChildItem -Path $PSScriptRoot\Functions\Private -Recurse -Filter *.ps1 -Exclude *.Tests.ps1 -ErrorAction SilentlyContinue ) $Classes = @( Get-ChildItem -Path $PSScriptRoot\Classes -Recurse -Filter *.ps1 -Exclude *.Tests.ps1 -ErrorAction SilentlyContinue ) #Dot source the files Foreach($import in @($Public + $Private + $Classes)) { Try { . $import.fullname } Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } $publicFunctions = Get-ChildItem -Recurse -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Functions\Public') -Filter *.ps1 -Exclude *.Tests.ps1 ` | ForEach-Object { [io.path]::GetFileNameWithoutExtension($_) } Export-ModuleMember -Function $publicFunctions # SIG # Begin signature block # MIIaxgYJKoZIhvcNAQcCoIIatzCCGrMCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB3xlwJnYGBKX7U # Tb7csun2m/pRMaNs44/lfdsZOhBTv6CCCqMwggUwMIIEGKADAgECAhAECRgbX9W7 # ZnVTQ7VvlVAIMA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNVBAYTAlVTMRUwEwYDVQQK # EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xJDAiBgNV # BAMTG0RpZ2lDZXJ0IEFzc3VyZWQgSUQgUm9vdCBDQTAeFw0xMzEwMjIxMjAwMDBa # Fw0yODEwMjIxMjAwMDBaMHIxCzAJBg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