mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
24 lines
725 B
PowerShell
24 lines
725 B
PowerShell
<#
|
|
### Note ###
|
|
|
|
This file is shipping plain with Icinga for Windows for each version.
|
|
Once the module is loaded, this content will entirely be replaced with
|
|
all modules and components shipped by the Icinga PowerShell Framework.
|
|
|
|
Manually enabling the feature is no longer required.
|
|
#>
|
|
|
|
# Ensures that VS Code is not generating the cache file
|
|
if ($null -ne $env:TERM_PROGRAM) {
|
|
Write-IcingaFrameworkCodeCache -DeveloperMode;
|
|
return;
|
|
}
|
|
|
|
Write-IcingaFrameworkCodeCache;
|
|
|
|
Import-Module icinga-powershell-framework -Global -Force;
|
|
Import-Module icinga-powershell-framework -Force;
|
|
|
|
if ($null -ne $env:TERM_PROGRAM -Or $Global:Icinga.Protected.DeveloperMode) {
|
|
Copy-IcingaFrameworkCacheTemplate;
|
|
}
|