emencia / diskette

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

[diskette_apps] Add 'apps' argument #12

Closed sveetch closed 8 months ago

sveetch commented 8 months ago

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

Currently diskette_apps built definitions for all enabled apps.

Describe the solution you'd like

We should have a apps arguments that will accept multiple application name to restrict definitions building.

So for:

diskette_apps auth sites

It will only build definitions for applications auth and sites, all others would be ignored.

It will be very useful to update project with new apps because app definitions in a large project can painful to read to find some specific apps.

Describe alternatives you've considered

Maybe also an option --excludes to exclude applications, so we can request for the whole definition list without some apps. Could be useful at least with well knowed app to ignore like contenttypes.

sveetch commented 8 months ago

Done in 0.3.4-pre.1