PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

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

Open o-l-a-v opened this issue 1 year ago • 0 comments

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

o-l-a-v avatar Dec 30 '24 18:12 o-l-a-v