Capgemini.Xrm.Data.Powershell.psm1
|
[cmdletbinding()] Param() Write-Verbose "Importing Functions" # Import everything in these folders foreach ($folder in @('Private', 'Public')) { $root = Join-Path -Path $PSScriptRoot -ChildPath $folder if (Test-Path -Path $root) { Write-Verbose "processing folder $root" $files = Get-ChildItem -Path $root -Filter *.ps1 # dot source each file $files | where-Object { $_.name -NotLike '*.Tests.ps1' } | ForEach-Object { Write-Verbose "dot loading Library $($_.name) "; . $_.FullName } } } |