Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

(dsc): Implement `PSResource` and `RepositoryList` DSC resources

Aperta
#2,051 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
powershell
Ambito
devops, tooling

Direzione di ricerca

Read the existing DSC resource manifests alongside psresource.dsc.resource.json and repositorylist.dsc.resource.json, then inspect psresourceget.ps1, GetPSResourceListActions, and the Repository class. Implement get, set, test, delete, export, and whatIf for both resources, with behavior matching the existing list resources.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature_request Needs-Triage
Summary of the new feature / enhancement

As a user, I want a Microsoft.PowerShell.PSResourceGet/PSResource resource so that a single module or script can be declared without wrapping it in a PSResourceList, and a Microsoft.PowerShell.PSResourceGet/RepositoryList resource so that the full set of registered repositories can be declared in one instance, in the same way PSResourceList does for resources.

Example of what a PSResource instance could look like:

resources:
- name: Pester
  type: Microsoft.PowerShell.PSResourceGet/PSResource
  properties:
    name: Pester
    version: '[5.0.0, 6.0.0)'
    repositoryName: PSGallery
    scope: CurrentUser
Proposed technical implementation details (optional)
  • Add psresource.dsc.resource.json and repositorylist.dsc.resource.json next to the existing manifests.
  • Implement get, set, test, delete, export and whatIf for both in psresourceget.ps1, reusing GetPSResourceListActions and the Repository class so the behaviour matches the list resources.
Lingua principale
C#
Stelle
576
Fork
114
Merge medio
23h 17m
PR unite (30g)
8

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSResourceGet

Tutte le issue di PowerShell/PSResourceGet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.