-
Notifications
You must be signed in to change notification settings - Fork 1k
Respect fields order in formatter output #5932
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
Conversation
5bc9b0e to
382eb37
Compare
|
This is a potentially breaking change where e.g. tests need to be updated, so maybe similar to #5542 we should wait for 3.0.0 to merge this. WDYT? |
To be more specific, a script reading the output of a command could have an implicit dependency on the current behavior (e.g. CSV columns in a particular order).
Let's do this. I moved #5941 to this repo and filed it against the 3.0 milestone for consideration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Fixes #5941
Fields order like
[ 'version', 'author', 'name' ]is respected in the output.Example
file.php:Command:
wp eval-file file.php --skip-wordpressOutput: