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

Return model information as xml or json text when "cse inspect" is called #43

Open
kevinksyTRD opened this issue Nov 5, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@kevinksyTRD
Copy link

Hi,

It will be nice if the cse inspect command returns the model information as xml or json text. It makes it very easy for the external software to retrieve the model information.

Kevin

@kevinksyTRD kevinksyTRD added the enhancement New feature or request label Nov 5, 2019
@kyllingstad
Copy link
Member

I agree, this is something we really need. The default should probably remain a "human readable" format, but we can add a --json option to switch to JSON output.

Note that the current human readable output is actually also machine readable – it's YAML. :)

@kevinksyTRD
Copy link
Author

kevinksyTRD commented Nov 5, 2019 via email

@kyllingstad
Copy link
Member

It prints the information to its standard output stream. So if you are running it from Python, you can get the output by using the subprocess.check_output() function.

By the way, please don't use email to reply to GitHub comments. That feature doesn't work very well and creates a lot of noise.

@kevinksyTRD
Copy link
Author

This already solved a lot. YAML parsing is not difficult at all. So this feature doesn't need to be prioritized.

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

2 participants