-
Notifications
You must be signed in to change notification settings - Fork 8
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
reads file from stdin even if argument with file provided #218
Comments
Thanks for your feedback. I don't have any time to work on yamlfixer for now, unfortunately. |
Hi, I think there is just some leftover after refactor. yamlfixer/yamlfixer/__main__.py Line 49 in 0ce16e0
When I removed lines 49-53, it seems working as expected to me:
vs.
|
… filenames argument
So I created PR #219 |
1️⃣ Description
Using in bash
while read line; do yamlfixer $line; done
is not working as expected.📑 Steps to Reproduce
2️⃣ Expected behavior
The debug message shows
filenames=['foo', '-'])
and the rest of lines are read.I'd expect, if there is single parameter 'foo', the command will not read from stdin.
Some check of existing file will also help.
Additional context
Thank you for great approach combining yamllint output!
The text was updated successfully, but these errors were encountered: