Skip to content
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

add support to pass JSON as env var #198

Merged
merged 3 commits into from
Sep 21, 2023

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Sep 19, 2023

PR Summary

Enable passing JSON as env vars to command resource. Only strings, numbers, array of strings, array of numbers, or booleans are supported. Boolean array is excluded as it doesn't seem useful.

Note there is a change in behavior in that previously if get in the resource manifest didn't specify input, it was assumed stdin and still passed through. However, if input is not defined, it's now assuming no input even if it was sent via stdin.

PR Context

Fix #98

@SteveL-MSFT SteveL-MSFT changed the title add support to pass json as env var add support to pass JSON as env var Sep 20, 2023
Copy link
Collaborator

@anmenaga anmenaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Sep 21, 2023
Merged via the queue into PowerShell:main with commit 57f2e89 Sep 21, 2023
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the inputkind-env branch September 21, 2023 00:33
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Sep 27, 2023
This change updates the schemas to replace the unimplemented `args` option
for command input in the resource manifest with the `env` option. It also
updates the schema and documentation to indicate that when the `input` option
is not defined for a command in a resource manifest, DSC does not send the
resource any input for that command.

This update is made to reflect the changes from PowerShell#198.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Sep 27, 2023
This change updates the reference documentation and the changelog
to reflect the changes that were included in the `alpha.3` release:

- PowerShell#197
- PowerShell#198
- PowerShell#199
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Sep 29, 2023
This change updates the reference documentation and the changelog
to reflect the changes that were included in the `alpha.3` release:

- PowerShell#197
- PowerShell#198
- PowerShell#199
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Sep 29, 2023
This change updates the schemas to replace the unimplemented `args` option
for command input in the resource manifest with the `env` option. It also
updates the schema and documentation to indicate that when the `input` option
is not defined for a command in a resource manifest, DSC does not send the
resource any input for that command.

This update is made to reflect the changes from PowerShell#198.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Sep 29, 2023
This change updates the reference documentation and the changelog
to reflect the changes that were included in the `alpha.3` release:

- PowerShell#197
- PowerShell#198
- PowerShell#199
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Sep 30, 2023
This change updates the reference documentation and the changelog
to reflect the changes that were included in the `alpha.3` release:

- PowerShell#197
- PowerShell#198
- PowerShell#199
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Sep 30, 2023
This change updates the reference documentation and the changelog
to reflect the changes that were included in the `alpha.3` release:

- PowerShell#197
- PowerShell#198
- PowerShell#199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement InputKind Env
2 participants