Add PassThru option for Test-PSRuleTarget
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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