emencia / diskette

💾 Export and import Django application data and medias
https://diskette.readthedocs.io/
MIT License
1 stars 0 forks source link

[diskette_apps] New option "--format" to output definitions in Python #4

Closed sveetch closed 7 months ago

sveetch commented 7 months ago

Is your feature request related to a problem? Please describe.

Currently this command only output definition in JSON.

Describe the solution you'd like

A new option --format that will allow to choose between JSON and Python format.

This will be useful also to output directly in Python so user does not have to convert JSON to write a definition.

sveetch commented 7 months ago

Done in v0.3.3, the Python is now the default format, have to use --format=json to return JSON