WoWManager.psm1
Write-Verbose "Importing Functions" # Import everything in these folders Foreach ($Folder in @('private', 'public', 'classes')) { $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 $_.Name; . $_.FullName } } } $WoW_Folder = $null $WoW_WTFFolderPath = $null $WoW_AccountsFolderPath = $null $WoW_AddonsFolderPath = $null $WoW_DateFormat = "yyyy-MM-dd-HHmmss" Export-ModuleMember -Function (Get-ChildItem -Path "$PSScriptRoot\public\*.ps1").BaseName |