AdvancedHistory.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -------------------------- Load Localization ----------------------------
#
Data LocalizedData {
    # culture="en-US"
    ConvertFrom-StringData @'
'@

}
Microsoft.PowerShell.Utility\Import-LocalizedData LocalizedData -FileName AdvancedHistory.Localization.psd1 -ErrorAction SilentlyContinue

# -------------------------- Load Script Files ----------------------------
#
# Do not add Export-ModuleMember logic. All functions in .\Public are added to the manifest during build.
# If you need to import from \src\ run the build.ps1 in \tools\ with 'ExportFunctionsToSrc' as the task.
#
$ModuleScriptFiles = @(Get-ChildItem -Path $PSScriptRoot -Filter *.ps1 -Recurse  | Where-Object { $_.Name -notlike "*.ps1xml" } )

foreach ($ScriptFile in $ModuleScriptFiles) {
    try {
       Write-Verbose "$($LocalizedData.VerboseLoadingScript -f $ScriptFile.Name)"
        . $ScriptFile.FullName
    }
    catch {
       Write-Error "$($LocalizedData.ErrorLoadingScript -f $ScriptFile.FullName)"
    }
}