-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add an option to output JSON #4
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jon Oster <[email protected]>
Signed-off-by: Jon Oster <[email protected]>
Signed-off-by: Jon Oster <[email protected]>
Signed-off-by: Jon Oster <[email protected]>
@tkfu This should be very useful indeed. But, what about add a parameter switch instead of the environment variable? |
@microhobby The script as is doesn't do proper arg parsing--it just has a |
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
@tkfu I think I get an unexpected behavior: When getting the help with the
It's add it to the blocks, but the result is not a valid JSON. |
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
Dear maintainers, I think that this was already merged right? |
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
MR from upstream: toradex/tdx-info#4 Signed-off-by: Matheus Castello <[email protected]>
I didn't want to mess with the arg parsing, so I did this via environment variable.
This would potentially be useful if we want to upload this data to the platform in a (semi-)structured way.
Example output of
JSON_OUTPUT=1 tdx-info
:Example output of
JSON_OUTPUT=1 tdx-info -dt
(to show multi-line output in the JSON: