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

JSON created by Export-CrescendoCommand can not be read by Export-CrescendoModule

Aperta
#155 10 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@theJasonHelmick ci sta già lavorando.

Dal 23/5/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Issue-Enhancement Issue-Triaged

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

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/Crescendo

Tutte le issue di PowerShell/Crescendo

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.