Make --[no-]show-... options work with JSON output#308
Make --[no-]show-... options work with JSON output#3082 commits merged intodevelopfrom unknown repository
--[no-]show-... options work with JSON output#308Conversation
Passing --no-{time,show-level,show-module,show-testcase} should work
with --json or --json-stream.
|
Also see #247 (comment) This is fine, but the documentation must be updated: What does When |
I'm not sure I understand your question. Could you explain? |
tgreenx
left a comment
There was a problem hiding this comment.
Also see #247 (comment)
This is fine, but the documentation must be updated:
--[no-]json-translate Flag indicating if streaming JSON output should include the translated message of the tag or not.What does
--rawmean in combination with--json?When
--rawis given without--jsonthen you get the tag and the arguments for that tag. Can you get the arguments here?
As mentioned in the cited comment, --[no-]json-translate appears entirely redundant to --[no-]raw. Up until it gets removed, I agree that the documentation could use some detail when both are used. Right now, --[no-]raw has no effect when combined with --[no-]json. Also, --[no-]json-translate takes precedence over --[no-]raw.
Other than that LGTM, tested and works as described.
|
I've updated the documentation for |
Forget my comment. Now it looks OK. |
|
This looks fine, but could |
I'm not against it. However I'd like to share why I'd like not to add this to this PR:
|
So you mean that If the end result is that it will be clear in the documentation what options that can be combined and not that I am fine with it. |
Yes. This is exactly what I intend to do. |
matsduf
left a comment
There was a problem hiding this comment.
Requires additional PRs, but this part is fine.
v2023.1 Release testingBasic testing:
Bugs:
Observations:
|
Purpose
The CLI has several options to specify which field to display. Such options are not available when using JSON output
--jsonor--json-stream. This PR make such options work with JSON output.Context
#247 (comment)
Changes
--[no-]show-...options work with JSON output--jsonand--json-translateHow to test this PR
Try several combinations using the
--[no-]show-...and/or--[no-]timeoptions and check that the fields are properly displayed or not. Also check that the combination--json --json-translateproperly return the translated message.