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

Ability to register resource repository without it being used unless explicitly with -Repository #1773

Open
o-l-a-v opened this issue Jan 12, 2025 · 1 comment

Comments

@o-l-a-v
Copy link
Contributor

o-l-a-v commented Jan 12, 2025

Summary of the new feature / enhancement

For testing it'd be great with the ability to Register-PSResourceRepository without it being used by Find-PSResource (and other cmdlets) unless explicitly chosen with -Repository.

Then we can have various test repositorories registered that might not work, but don't break day to day operations with PSResourceGet.

Proposed technical implementation details (optional)

  • Add a priority that tells PSResourceGet not to use it by default. -1? 101?
  • Add an optional parameter switch: -NonDefault, -Testing?
  • Add an optional parameter string -Type that defaults to 'Default' with the option of 'Explicit'?
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

2 participants
@o-l-a-v and others