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

Enable Include resource to take configuration and parameters as string content #626

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Jan 16, 2025

PR Summary

The Include resource currently only takes the configuration to include and parameters as external files. This change enables a choice of either a file path configurationFile, parametersFile or the content as a string configurationContent, parametersContent (can be mixed). This is useful where another resource might generate a configuration that is used later within a larger configuration without needing to save it to a file first.

@michaeltlombardi for docs, it's important that the nested JSON/YAML is a text string and NOT a nested object this is why the tests have embedded YAML as a multi-line string and the JSON in quotes.

There is future work to allow a nested object for configuration and parameters that can be added to the enum but not part of this PR.

Seems like there is a new clippy rule for unnecessary map use so fixed that as well although unrelated to my changes.

…ing content
SteveL-MSFT and others added 2 commits January 16, 2025 09:19
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Jan 16, 2025
@SteveL-MSFT SteveL-MSFT added this to the 3.0-Approved milestone Jan 16, 2025
Merged via the queue into PowerShell:main with commit e5ff855 Jan 16, 2025
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the include-content branch January 16, 2025 23:58
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.

None yet

2 participants