PowerShell / PowerShell/PSResourceGet

`Find-PSResource` - Ability to exclude tag(s)

Open
#1,767 0 comments 0 reactions 0 assignees View on GitHub

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_Desktop but not PSEdition_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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.