PowerShell / PowerShell/PSResourceGet
`Find-PSResource` - Ability to exclude tag(s)
Open
Nobody has claimed this yet.
Area-Find
feature_request
- Dominant language
- C#
- Stars
- 576
- Forks
- 114
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
Description
Summary of the new feature / enhancement
It'd be useful with the ability to exclude one or more tags from the result when using Find-PSResource, instead of having all results returned, then filter locally.
Example scenarios where this would be helpful:
- All modules made for
PSEdition_Desktopbut notPSEdition_Core. - All Mac OS only packages.
The API supports it, for instance like so:
- Include "Linux":
substringof(%27Linux%27%2c+Tags)+eq+true - Exclude "Linux":
substringof(%27Linux%27%2c+Tags)+eq+false
Proposed technical implementation details (optional)
- New parameter
-ExcludeTag? !in front of a tag, like this:-Tag 'MacOS', '!Linux'?
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 Find-PSResource implementation and trace how tag filters are converted into the package search API query. Compare the proposed -ExcludeTag parameter with the alternative negated -Tag syntax, then verify that included and excluded tags produce the expected search results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100