TenantLens.psm1
|
#Requires -Version 5.1 $script:TLModuleRoot = $PSScriptRoot $script:TLVersion = (Import-PowerShellDataFile -Path (Join-Path -Path $PSScriptRoot -ChildPath 'TenantLens.psd1')).ModuleVersion # GUID -> display name cache shared by all collectors of a session $script:TLResolverCache = @{} $script:TLAppIdCache = @{} foreach ($folder in @('Private', 'Public')) { $folderPath = Join-Path -Path $PSScriptRoot -ChildPath $folder if (Test-Path -Path $folderPath) { foreach ($file in (Get-ChildItem -Path $folderPath -Filter '*.ps1' -File | Sort-Object -Property Name)) { . $file.FullName } } } $publicFunctions = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Public') -Filter '*.ps1' -File | ForEach-Object { $_.BaseName }) Export-ModuleMember -Function $publicFunctions |