PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

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

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

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

o-l-a-v avatar Jan 12 '25 17:01 o-l-a-v