Skip to content

Add object separator when using YAML output #635

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 5 commits into from
Feb 7, 2025

Conversation

SteveL-MSFT
Copy link
Member

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

PR Summary

When using YAML output, add --- separator between objects

  • rename write_output() to write_object() which more accurately describes the function
  • add parameter to write_object() indicating whether to emit YAML object separator

PR Context

Fix #628

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • dsc/tests/dsc_args.tests.ps1: Language not supported

@SteveL-MSFT
Copy link
Member Author

Need to wait for #634 which fixes the unit test failures unrelated to this change

@SteveL-MSFT SteveL-MSFT merged commit 2c9f49e into PowerShell:main Feb 7, 2025
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the yaml-break branch February 7, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

YAML output should use document separators
2 participants