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

Feature Request: Allow export to XML/JSON and YAML at the same time #6

Open
gjaekel opened this issue Nov 6, 2020 · 2 comments
Open

Comments

@gjaekel
Copy link

gjaekel commented Nov 6, 2020

By using the option --save-yaml, the export may be converted to YAML as an alternative. Because I want to save both, XML (resp. JSON) and YAML, I request to add the possibility to write output to both formats with the same call. This will avoid to run the toll twice, which will save time and ensiore consistency between the both outputs.

I sugggest to add the option named --save-xml to enable XML output. To keep the current behavior, this should be true as default and set to false if --save-yaml is used alone.

@evgkrsk
Copy link
Contributor

evgkrsk commented Nov 6, 2020

PRs are welcome.

@gjaekel
Copy link
Author

gjaekel commented Nov 6, 2020

I'm no code writing developer, but I'll try. The core point to output boot seems to be a easy one because the conversion to YAML is done by converting the txt variable in case. One have just to "double" the code and add a save-xml boolean.

The command parsing part is much more difficult to me because I don't know anything about the Python argument parsing facilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants