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(#2123): Move output to stderr #2507

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jzorn
Copy link
Contributor

@jzorn jzorn commented Jun 25, 2024

Description

This change moves informational command outputs from console.log (prints on stdout) to console.warn/console.error (prints on stderr) to enable stdout processing in pipelines.

This was merged already but got reverted by @helloanoop for a second review, see the comments in #2125
Was already approved by andreassiegel.

Fixes #2123
See #2125

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

jzorn and others added 2 commits April 18, 2024 17:41
This change moves informational command outputs from console.log (prints on stdout) to console.warn/console.error (prints on stderr)
to enable stdout processing in pipelines.
@jzorn
Copy link
Contributor Author

jzorn commented Jun 25, 2024

@andreassiegel As suggested in #2125 - thanks!

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.

cli: add the ability to output to /dev/stdout
2 participants