@@ -10,7 +10,11 @@ Path to the JSON file containing the configuration.
1010The output of ConvertFrom-Json (PSCustomObject) if the file contains a valid JSON object
1111that matches the feature flags JSON schema, $null otherwise.
1212#>
13- function Get-FeatureFlagConfigFromFile ([string ]$jsonConfigPath ) {
13+ function Get-FeatureFlagConfigFromFile {
14+ [CmdletBinding ()]
15+ param (
16+ [string ]$jsonConfigPath
17+ )
1418 $configJson = Get-Content $jsonConfigPath | Out-String
1519 if (-not (Confirm-FeatureFlagConfig $configJson )) {
1620 return $null
@@ -131,6 +135,7 @@ $false in case of such invalid configuration rather than throwing exceptions tha
131135to be handled.
132136#>
133137function Confirm-FeatureFlagConfig {
138+ [CmdletBinding ()]
134139 param (
135140 [Parameter (Mandatory = $true )]
136141 [AllowNull ()]
@@ -177,7 +182,8 @@ function Confirm-FeatureFlagConfig {
177182# Unfortunately it's impossible to express this concept with the current
178183# JSON schema standard.
179184function Confirm-StagesPointers {
180- param (
185+ [CmdletBinding ()]
186+ param (
181187 [string ] $serializedJson
182188 )
183189
@@ -264,6 +270,7 @@ function Test-FeatureFlag {
264270
265271function Test-FeatureConditions
266272{
273+ [CmdletBinding ()]
267274 param (
268275 [PSCustomObject ] $conditions ,
269276 [string ] $predicate ,
@@ -320,6 +327,7 @@ Array of the supported features by name.
320327#>
321328function Get-SupportedFeatures
322329{
330+ [CmdletBinding ()]
323331 param (
324332 [PSCustomObject ] $config
325333 )
@@ -348,6 +356,7 @@ Returns the environment variables collection associated with a specific feature
348356#>
349357function Get-FeatureEnvironmentVariables
350358{
359+ [CmdletBinding ()]
351360 param (
352361 [PSCustomObject ] $Config ,
353362 [string ] $FeatureName
@@ -372,6 +381,7 @@ Returns an array of the evaluated feature flags given the specified predicate.
372381#>
373382function Get-EvaluatedFeatureFlags
374383{
384+ [CmdletBinding ()]
375385 param (
376386 [string ] $predicate ,
377387 [PSCustomObject ] $config
@@ -411,6 +421,7 @@ Outputs multiple file formats expressing the evaluated feature flags
411421#>
412422function Out-EvaluatedFeaturesFiles
413423{
424+ [CmdletBinding ()]
414425 param (
415426 [PSCustomObject ] $Config ,
416427 [PSCustomObject ] $EvaluatedFeatures ,
0 commit comments