Azure.DevOps.PSModule.psm1
|
# Using statements using namespace System.Collections.Generic [CmdletBinding()] param() Write-Verbose $PSScriptRoot Write-Verbose 'Import all modules' foreach ($folder in @('Private', 'Public')) { $root = Join-Path -Path $PSScriptRoot -ChildPath $folder if (Test-Path -Path $root) { Write-Verbose (' Processing folder {0}' -f $folder) $files = Get-ChildItem -Path $root -Filter *.ps1 -Recurse | Where-Object { $_.Name -notlike '*Classes.ps1' } # dot source each file $files | ForEach-Object { Write-Verbose (' {0}' -f $_.basename); . $_.FullName } } } # Export only the functions specified in the module manifest Export-ModuleMember -Function * -Alias * |