From fd1a35ec2b3a59c37fed43d6a12eeaa24ed6f720 Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Wed, 13 May 2026 17:27:13 -0700 Subject: [PATCH] docs(Test-FeatureFlag,Test-Condition): add [OutputType([bool])] and .OUTPUTS help Co-Authored-By: Claude Sonnet 4.6 --- Gatekeeper/Public/Test-Condition.ps1 | 5 +++++ Gatekeeper/Public/Test-FeatureFlag.ps1 | 5 +++++ docs/en-US/Test-Condition.md | 4 ++++ docs/en-US/Test-FeatureFlag.md | 4 ++++ 4 files changed, 18 insertions(+) diff --git a/Gatekeeper/Public/Test-Condition.ps1 b/Gatekeeper/Public/Test-Condition.ps1 index a09ea89..0190bee 100644 --- a/Gatekeeper/Public/Test-Condition.ps1 +++ b/Gatekeeper/Public/Test-Condition.ps1 @@ -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] diff --git a/Gatekeeper/Public/Test-FeatureFlag.ps1 b/Gatekeeper/Public/Test-FeatureFlag.ps1 index 7d6bcf8..5067c03 100644 --- a/Gatekeeper/Public/Test-FeatureFlag.ps1 +++ b/Gatekeeper/Public/Test-FeatureFlag.ps1 @@ -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] diff --git a/docs/en-US/Test-Condition.md b/docs/en-US/Test-Condition.md index b727e41..8f5b046 100644 --- a/docs/en-US/Test-Condition.md +++ b/docs/en-US/Test-Condition.md @@ -102,6 +102,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS +### System.Boolean + +Returns $true if the condition matches the given context, $false otherwise. + ## NOTES ## RELATED LINKS diff --git a/docs/en-US/Test-FeatureFlag.md b/docs/en-US/Test-FeatureFlag.md index 2fdc1ea..957fd87 100644 --- a/docs/en-US/Test-FeatureFlag.md +++ b/docs/en-US/Test-FeatureFlag.md @@ -101,6 +101,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS +### System.Boolean + +Returns $true if an Allow rule matches, $false otherwise. + ## NOTES ## RELATED LINKS