Skip to content

Add pass-through output format for dsc resource get #862

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

Merged
merged 3 commits into from
Jun 5, 2025

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Jun 5, 2025

PR Summary

Add pass-through output format for dsc resource get which emits the JSON from the resource without adding a wrapper
Fixed some cases where the error text wasn't using i18n or remove the unnecessary Error: prefix to the message since error!() macro already emits that.

Note that only get has this capability since set and test have variable output from resources and the value is wrapped by DSC for before/after or desired/actual. export already has equivalent via get --all (if I knew this was coming, I would have had it done this way for export, but oh well)

PR Context

cc @Bpoe

@SteveL-MSFT SteveL-MSFT requested a review from tgauth June 5, 2025 01:57
@SteveL-MSFT SteveL-MSFT force-pushed the resource-pass-through branch from 7c343fb to c678d8e Compare June 5, 2025 18:37
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Jun 5, 2025
Merged via the queue into PowerShell:main with commit cd13485 Jun 5, 2025
3 of 4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the resource-pass-through branch June 5, 2025 19: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.

3 participants