Skip to content
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

Extend inspect output format with JSON #77

Closed
behouba opened this issue Jun 21, 2023 · 3 comments
Closed

Extend inspect output format with JSON #77

behouba opened this issue Jun 21, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@behouba
Copy link
Collaborator

behouba commented Jun 21, 2023

Currently checkpointctl inspect only support the tree format. It might be useful to also be able to render the output in a JSON format (--format=json). This would enable easier integration with other tools to further process the output of checkpointctl.

Suggested by: @rst0git

@behouba behouba changed the title Extend the output format with a JSON view Extend the output format with JSON Jun 21, 2023
@snprajwal
Copy link
Member

This would be trivial to do for the existing features coming from CRIT (process tree, file descriptors, etc) since the original format is JSON itself. At most, we will have to use a custom struct to remove some of the fields that are not relevant.

@behouba behouba changed the title Extend the output format with JSON Extend inspect output format with JSON Jul 3, 2023
@rst0git rst0git added the enhancement New feature or request label Sep 9, 2023
@Parthiba-Hazra
Copy link
Contributor

Hi @behouba @snprajwal @rst0git
if the issue is not been worked yet, can I take it ?

@rst0git
Copy link
Member

rst0git commented Dec 21, 2023

@Parthiba-Hazra Sure, please feel free to open a pull request!

rst0git pushed a commit to Parthiba-Hazra/checkpointctl that referenced this issue Jan 10, 2024
This patch extends checkpointctl with support for output in JSON format.

Resolves: checkpoint-restore#77

Signed-off-by: Parthiba-Hazra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants