Extend functions that implement classes for ParameterInfo and Command with additional parameter options
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- powershell
- Ambito
- cli
Direzione di ricerca
Start with Microsoft.PowerShell.Crescendo/src/Microsoft.PowerShell.Crescendo.psm1 and the ParameterInfo source around line 53. Inspect the New-* functions for ParameterInfo and Command, then confirm which class members should be accepted as parameters; the work is done when module authors can provide those options directly through the constructors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary of the new feature / enhancement
Based on the[ParameterInfo] source as an example, it would make sense to provide some additional parameters (or all of them) so a Crescendo module author can more completely construct things without additional code.
For example, dealing with parameters that require NoGap be set to $true currently requires something like this to be done:
$parameterInfo = New-ParameterInfo -Name MyParameter -OriginalName '--original-parameter-name'
$parameterInfo.NoGap = $true
Proposed technical implementation details (optional)
I propose that class members be added as parameters to available New-* functions so Crescendo module authors have less and cleaner code to write.
E.g. I'd like to see this work:
$piSplat = @{
Name = 'FancyParameter'
OriginalName = '--fancy-param'
Description = 'This describes the parameter'
DefaultValue = 'SomeDefault
NoGap = $true
New-ParameterInfo @piSplat
I"m happy to help here, if you want to tell me "PRs greatly appreciated!" 😂
- Lingua principale
- PowerShell
- Stelle
- 437
- Fork
- 49
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/Crescendo
-
Issue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
PowerShell/Crescendo#210 ·
-
Issue-Enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#202 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#201 · 1 commento ·
-
Issue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#199 ·
-
Ordered combined commandsApertaIssue-Enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PowerShell/Crescendo#196 ·
Tutte le issue di PowerShell/Crescendo
Issue simili
-
bug cli service
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
PDLPorters/pdl#561 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
restic/restic#22112 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
[Request]: ReachApertapackage-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
ScoopInstaller/Extras#18986 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno