v1.1 Preview Feedback #187
ethanbergstrom
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Started porting my existing modules from Crescendo 0.4.1. to the 1.1 preview, and had some feedback:
Export-CrescendoModule
in the new version is definitely not a drop-in replacement vs older versions. It doesn't seem to like the object-to-JSON mechanism I used previously.New-CrescendoCommand
,Export-CrescendoCommand
, andExport-CrescendoModule
at https://learn.microsoft.com/en-us/powershell/utility-modules/crescendo/advanced/using-crescendo-cmdlets was very helpful to get a feel for how they are envisioned to worked togetherExport-CrescendoCommand
is a little lacking in it's chaining ability. It can emit a bundle of JSONs, but it doesn't tell you what the JSON filenames it generated are in stdout, which means I cant chain it directly toExport-CrescendoModule
.Export-CrescendoCommand | Export-CrescendoModule
orExport-CrescendoModule -ConfigurationFile (Export-CrescendoCommand)
-targetDirectory
,-fileName
, and-command
onExport-CrescendoModule
aren't capitalized to PowerShell conventions-fileName
to designate an output works just fine, but the per-command JSONs generated by the-targetDirectory
behavior still use the previous JSON schema, which the newExport-CrescendoModule
cannot read.Example changes I had to make to adapt to Crescendo can be found here: ethanbergstrom/Cobalt#21 and the final result can be found here: https://www.powershellgallery.com/packages/Cobalt/0.4.0
Nice work!
Beta Was this translation helpful? Give feedback.
All reactions