mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Add support to autoload plugins Icinga Plugin repo
This commit is contained in:
parent
2e340deee1
commit
1dd1412c93
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,12 @@ function Use-Icinga()
|
|||
[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
|
||||
# actions, making it available within our shell environment
|
||||
# First load our custom modules
|
||||
|
|
|
|||
Loading…
Reference in a new issue