Add support to autoload plugins Icinga Plugin repo

This commit is contained in:
Lord Hepipud 2019-11-03 11:59:08 +01:00
parent b970483683
commit e4ccd950bb

View file

@ -16,6 +16,12 @@ function Use-Icinga()
[switch]$Daemon = $FALSE [switch]$Daemon = $FALSE
); );
# Ensure we autoload the Icinga Plugin collection, provided by the external
# module 'icinga-powershell-plugins'
if (Get-Command 'Use-IcingaPlugins' -ErrorAction SilentlyContinue) {
Use-IcingaPlugins;
}
# This function will allow us to load this entire module including possible # This function will allow us to load this entire module including possible
# actions, making it available within our shell environment # actions, making it available within our shell environment
# First load our custom modules # First load our custom modules