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
a23fbd2d1f
commit
11cf3d589c
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue