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

Console: Add option to write formatted output to stdout instead of modifying the file #440

Closed
lysanntranvouez opened this issue Oct 7, 2023 · 1 comment · Fixed by #441

Comments

@lysanntranvouez
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In order to use this formatter in a git pre-commit hook (which also works with partial staging), I need the console tool to write the results to stdout instead of modifying the original file.

Describe the solution you'd like

  1. There's a command line option that writes the formatted document to stdout instead of modifying the file. The option is mutually exclusive with --passive.
  2. When the option is enabled, the tool doesn't log to stdout anymore, but to stderr.
@lysanntranvouez
Copy link
Contributor Author

I'll have a pull request ready in a minute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants