PowerShell / PowerShell/PSResourceGet
Add Scope to Repositories
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 576
- Forks
- 114
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
Description
Summary of the new feature / enhancement
In order to make repository registration available system-wide we should add a -Scope parameter to Register-PSRepository. This parameter will determine the file path where the repository metadata is stored and therefore determine whether all users can access the repository registration. This change will also introduce the following parameters:
- Add a -
ScopeParameter toRegister-PSResourceRepository - Add a -
ScopeParameter toSet-PSResourceRepository - Add a -
ScopeParameter toUnregister-PSResourceRepository - Add a -
ScopeParameter toGet-PSResourceRepository - Add a -
RepositoryScopeParameter toFind-PSResource - Add a -
RepositoryScopeParameter toInstall-PSResource - Add a -
RepositoryScopeParameter toUpdate-PSResource - Add a -
RepositoryScopeParameter toUninstall-PSResource - Add a -
RepositoryScopeParameter toPublish-PSResource - Add a -
RepositoryScopeParameter toSave-PSResource
Proposed technical implementation details (optional)
CurrentUser will remain the default behavior even with these changes.
We will not enforce uniqueness across scope, and therefore need additional parameters to indicate repository scope.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the repository-registration entry points named in the issue—Register-PSRepository and the PSResourceRepository cmdlets—then trace how repository metadata paths are selected. Done means all listed Scope and RepositoryScope parameters are covered, CurrentUser remains the default, and registrations can be addressed by scope without requiring cross-scope uniqueness.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100