749039f3b9
* use 'Invoke-AtomicTest All' instead of 'Invoke-AllAtomicTest' * removing some outdated examples * removing the older documentation
15 lines
490 B
PowerShell
15 lines
490 B
PowerShell
#requires -Version 3.0
|
|
|
|
#Get public and private function definition files.
|
|
$Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -Recurse -ErrorAction SilentlyContinue )
|
|
$Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -Recurse -ErrorAction SilentlyContinue )
|
|
|
|
#Dot source the files
|
|
Foreach ($import in @($Public + $Private)) {
|
|
Try {
|
|
. $import.fullname
|
|
}
|
|
Catch {
|
|
Write-Error -Message "Failed to import function $($import.fullname): $_"
|
|
}
|
|
} |