Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
o-l-a-v opened this issue Dec 30, 2024 · 0 comments
Open

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

o-l-a-v opened this issue Dec 30, 2024 · 0 comments

Comments

@o-l-a-v
Copy link
Contributor

o-l-a-v commented Dec 30, 2024

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'?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant