Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Gatekeeper/Public/Test-Condition.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ function Test-Condition {
Test-Condition -Context $context -PropertySet $propertySet -Condition $rule

This would return a true/false

.OUTPUTS
System.Boolean
Returns $true if the condition matches the given context, $false otherwise.
#>
[CmdletBinding()]
[OutputType([bool])]
param (
[Parameter(Mandatory)]
[hashtable]
Expand Down
5 changes: 5 additions & 0 deletions Gatekeeper/Public/Test-FeatureFlag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@
Test-FeatureFlag -FeatureFlag $flag -PropertySet $propertySet -Context $context

This will test if the current device will pass the feature flag rules.

.OUTPUTS
System.Boolean
Returns $true if an Allow rule matches, $false otherwise.
#>
[CmdletBinding()]
[OutputType([bool])]
param (
[Parameter(Mandatory, ValueFromPipeline)]
[FeatureFlag]
Expand Down
4 changes: 4 additions & 0 deletions docs/en-US/Test-Condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Check warning on line 89 in docs/en-US/Test-Condition.md

View workflow job for this annotation

GitHub Actions / Continuous Integration / Run Linters

Unknown word (proga) Suggestions: (proa, prog, progs, Prog, prgo)

Required: False
Position: Named
Expand All @@ -102,6 +102,10 @@

## OUTPUTS

### System.Boolean

Returns $true if the condition matches the given context, $false otherwise.

## NOTES

## RELATED LINKS
4 changes: 4 additions & 0 deletions docs/en-US/Test-FeatureFlag.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Check warning on line 88 in docs/en-US/Test-FeatureFlag.md

View workflow job for this annotation

GitHub Actions / Continuous Integration / Run Linters

Unknown word (proga) Suggestions: (proa, prog, progs, Prog, prgo)

Required: False
Position: Named
Expand All @@ -101,6 +101,10 @@

## OUTPUTS

### System.Boolean

Returns $true if an Allow rule matches, $false otherwise.

## NOTES

## RELATED LINKS
Loading