Add functions for configuration data handling and extend template merging capabilities

This commit is contained in:
Torsten Brendgen
2026-07-03 10:34:27 +02:00
parent 735bfc9f61
commit fcbe61902f
8 changed files with 408 additions and 76 deletions

View File

@@ -0,0 +1,22 @@
function Get-ConfigurationDataDictionaryValue {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true)]
[System.Collections.IDictionary]
$Dictionary,
[Parameter(Mandatory=$true)]
[string]
$Key,
[Parameter(Mandatory=$false)]
[AllowNull()]
$DefaultValue = $null
)
if(Test-ConfigurationDataDictionaryKey -Dictionary $Dictionary -Key $Key){
return $Dictionary[$Key]
}
return $DefaultValue
}