2019-01-16 12:55:29 +01:00
|
|
|
#region module-definition
|
|
|
|
|
|
|
|
#endregion module-definition
|
|
|
|
Set-Variable -Name "CSVersion" -Value "2.0.0" -Option Constant -Scope 'Script' -ErrorAction Stop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region dot-sourcing
|
|
|
|
# dot-sourcing all module functions. The export is handled via manifest file.
|
|
|
|
|
|
|
|
$Items = (Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath '*.ps1') -Recurse ).FullName | Where-Object {
|
2017-09-21 13:32:15 +02:00
|
|
|
$_ -notmatch "(Classes|Init)"
|
|
|
|
}
|
2019-01-16 12:55:29 +01:00
|
|
|
foreach ($Item in $Items) {
|
2017-09-21 13:32:15 +02:00
|
|
|
# Write-Verbose ("dot sourcing file {0}" -f $Item)
|
|
|
|
. $Item
|
|
|
|
}
|
2019-01-16 12:55:29 +01:00
|
|
|
#endregion dot-sourcing
|