microsoft / microsoft/PSRule

Add PassThru option for Test-PSRuleTarget

Open
#317 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
C#
Stars
474
Forks
65
Avg merge
22h 25m
Merged PRs (30d)
26

Description

Currently Test-PSRuleTarget only returns $True or $False. Additionally an option to -PassThru the target object based on $True or $False would helpful in a number of scenarios.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Test-PSRuleTarget command entry point and trace how it currently returns Boolean results. Check nearby command conventions for switch options, then implement and verify that -PassThru returns the target object when the result is true and the expected value when it is false.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.