Enhance configuration data handling with new reference resolution functions, dummy secret support, and update module version to 1.1.0
This commit is contained in:
@@ -24,6 +24,17 @@ function Invoke-ConfigurationDataExpressionFunction {
|
||||
Assert-ConfigurationDataExpressionArgumentCount -Name $Name -Arguments $Arguments -Count 1
|
||||
return Resolve-ConfigurationDataVariable -Name ([string]$Arguments[0]) -Context $Context
|
||||
}
|
||||
"reference" {
|
||||
if($Arguments.Count -eq 1){
|
||||
return Resolve-ConfigurationDataReference -Path ([string]$Arguments[0]) -Context $Context
|
||||
}
|
||||
|
||||
if($Arguments.Count -eq 2){
|
||||
return Resolve-ConfigurationDataReference -Path ([string]$Arguments[0]) -Property ([string]$Arguments[1]) -Context $Context
|
||||
}
|
||||
|
||||
throw "Function [$Name] expects 1 or 2 arguments, but received [$($Arguments.Count)]."
|
||||
}
|
||||
"concat" {
|
||||
return (@($Arguments) | ForEach-Object { [string]$_ }) -join ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user