-
Notifications
You must be signed in to change notification settings - Fork 29
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
Implement InputKind Env #98
Comments
Do we need a way to distinguish between |
Yes, I hadn't thought about this until I read your draft doc. Even worse, on Windows, it's not uncommon to see |
Complex/nested objects won't be supported for this and will error rather than trying to pass JSON fragment |
Was thinking about this and looked up how to parse args in Bash. It's actually quite complicated and requires not obvious code. Like batch files, it's more optimized for positional parameters. Instead, it's much easier to deal with env vars. So I'm changing this to passing input as named env vars. |
Should we not support both? Or are we prioritizing env vars now and args later? |
We can add args support when a use case comes up |
Summary of the new feature / enhancement
InputKind =
Args
is intended for simple cases likebash script resource
where a flat JSON schema would result as name/value pairs sent as parameters and parameter values to the script:Would result in:
yourresource -property1 1 -property2 "hello"
Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: