initial Commit

This commit is contained in:
Torsten Brendgen
2026-06-27 00:36:04 +02:00
commit 4b83abc7f2
27 changed files with 1702 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
function Assert-ConfigurationDataExpressionMinimumArgumentCount {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true)]
[string]
$Name,
[AllowNull()]
[object[]]
$Arguments,
[Parameter(Mandatory=$true)]
[int]
$Count
)
if(@($Arguments).Count -lt $Count){
throw "Function [$Name] expects at least [$Count] argument(s), but received [$(@($Arguments).Count)]."
}
}