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

fix --format to work with redirection #215

Merged
merged 3 commits into from Oct 3, 2023

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

The original logic for when to apply --format was only taking the interactive scenario into account, so redirecting, you'd only ever get json. Changed so that the default for interactive, if not specified is yaml, and the default for redirection, if not specified is json.

@miroman9364 miroman9364 added this pull request to the merge queue Oct 3, 2023
Merged via the queue into PowerShell:main with commit 0753fe0 Oct 3, 2023
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the write-output branch October 3, 2023 23:00
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Oct 5, 2023
This change updates the project changelog, reference documentation, and
schemas for the recent PRs merged for the project:

- PowerShell#206
- PowerShell#208
- PowerShell#211
- PowerShell#213
- PowerShell#215
- PowerShell#216
- PowerShell#217

The updates include:

- Documenting the new `_exist` property, replacing `_ensure` for
  resources. This documentation update includes the schema definition,
  but doesn't regenerate the schema, which will be handled separately.
- Documenting the new `completer` command.
- Documenting the new `--input` and `--input-file` global options.
- Adding a deprecation notice to the `_ensure` documentation.
- Adding entries for all user-impacting changes to the changelog.
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.

None yet

3 participants