Skip to content

Find-PSResource - Ability to exclude tag(s) #1767

Open
@o-l-a-v

Description

@o-l-a-v

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions