mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
12 lines
323 B
PowerShell
12 lines
323 B
PowerShell
|
|
# Provide a collection of utility functions for the module
|
||
|
|
[hashtable]$Utils = @{};
|
||
|
|
|
||
|
|
Get-ChildItem (Join-Path -Path $PSScriptRoot -ChildPath '\utils\') -Filter *.ps1 |
|
||
|
|
Foreach-Object {
|
||
|
|
$path = $_.FullName;
|
||
|
|
$name = $_.Name.Replace('.ps1', '');
|
||
|
|
|
||
|
|
$Utils.Add($name, (& $path));
|
||
|
|
}
|
||
|
|
|
||
|
|
return $Utils;
|