-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Fixed parsing new JSON output of debug:config not possible #50637
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
[FrameworkBundle] Fixed parsing new JSON output of debug:config not possible #50637
Conversation
The title should be only for the text format IMO |
There is no text format. The default is |
then maybe the title should be removed or be an info written to stderr instead of stdout |
I don't really see any value in the title either but I don't feel like I'm in charge to decide on this 😄 |
maybe show title if --format is not given or put different, the default format can be new |
I like that suggestions so I've quickly implemented a first version - wdyt? |
26ebc65
to
a3e8560
Compare
Thank you @Toflar. |
See my comment to the original PR which introduced
debug:config --format=json
: #48457 (comment)Currently, it's not possible to parse the JSON output (neither is the YAML) which makes
--format=json
kind of pointless. The argument against this - I guess - is that the JSON format was introduced to make the command independent from the YAML component but still, why is--format
an option then?So I guess by delivering an additional option, we can fix this issue and make it parsable.
(Maybe instead of having
--no-tilte
we should call itparsable
in the first place so that if in the future there's something on top of the title, the option would still be valid?)