-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversion of input parameter values #31
Comments
+1 on this, parameter transformation is also very commonly needed for all types of array parameters. Sometimes you need to pass each value as with the same repeated parameter, sometimes it's encoded as a single value joined by a character like ',', etc. One example is the Docker CLI that takes environment variables as a series of "-e NAME="VAL"" parameters. Here's how I do it: |
+1 too. I would like to transform a PSCredential so I can map it to --username and --password. Cause we all know that is not secure. Related to #34 |
Glob Pattern strings need to be single quoted before passing to native cmd I am working on GitHub CLI and need to have an input parameter single quoted since it is a glob pattern. Without the single quotes, at runtime it executes the glob matching before the native command gets control. As an experiment, I tried specifying the string like "'*pkg'" to the PowerShell parameter - but the native cmd could not find a match. I was able to test the native cmd successfully using --pattern '*pkg'
|
@cdhunt -- We agree that this would be a good addition. For a workaround today, see #31 (comment) |
Thank you! Fixed/closed - in release: https://www.powershellgallery.com/packages/Microsoft.PowerShell.Crescendo/1.1.0-RC1 |
The binary I'm working with takes a comma-delimited list of strings. I would like to take in a
string[]
and simply-join ''
at runtime.Args list should look like this
Currently looks like this.
Definition
The text was updated successfully, but these errors were encountered: