initial Commit
This commit is contained in:
17
Private/Resolve-ConfigurationDataParameter.ps1
Normal file
17
Private/Resolve-ConfigurationDataParameter.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
function Resolve-ConfigurationDataParameter {
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]
|
||||
$Name,
|
||||
|
||||
[Parameter(Mandatory=$true)]
|
||||
$Context
|
||||
)
|
||||
|
||||
if(-not $Context.Parameters.ContainsKey($Name)){
|
||||
throw "Parameter [$Name] is not defined."
|
||||
}
|
||||
|
||||
return Resolve-ConfigurationDataValue -Value $Context.Parameters[$Name] -Context $Context
|
||||
}
|
||||
Reference in New Issue
Block a user