JSON created by Export-CrescendoCommand can not be read by Export-CrescendoModule
@theJasonHelmick ci sta già lavorando.
Dal 23/5/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Export-CrescendoCommand calls the ExportConfigurationFile method of the command object.
This generates json which looks like this
{
"Verb": "Install",
...
}
Export-CrescendoModule expects to find JSON which looks like this
{
"Commands": [
{
"Verb": "Install",
...
}
]
}
Unless the command definitions are in an array the Export-CrescendoModule generates an error
InvalidOperation: You cannot call a method on a null-valued expression.
Granted anyone generating code with Export-CrescendoCommand can hack the JSON file, but (IMHO) that should not be required
edit crucial word was missing from the last sentence
- 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 ·
-
Extend functions that implement classes for ParameterInfo and Command with additional parameter optionsForse già presa @steviecoaster l’ha presa 916 giorni fa. ApertaIssue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
PowerShell/Crescendo#208 · 2 reazioni ·
-
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 ·