PowerShell / Crescendo

a module for wrapping native applications in a PowerShell function and module
MIT License
397 stars 37 forks source link

Add support for argument value transformation. #175

Closed JamesWTruher closed 2 years ago

JamesWTruher commented 2 years ago

This required a schema change. We now have 2 new members of the Parameter class ArgumentTransform and ArgumentTransformType which will invoke a script block which takes the parameter value as an argument. With this you can now turn @{ one = 1; two = 2} into one=1,two=2. Three different modes are supported. Inline, Function, and Script (similar to output handlers). Also added changes to the tests to support this new behavior. Added a new EchoTool program to do native executions.

PR Summary

Fixes for #31

PR Context