What
The django-orm-lens list subcommand currently emits plain app.Model lines. scan already supports --format json. Add --json (or --format json) support to list for pipe-friendly machine output.
Where
cli/django_orm_lens/cli.py — _cmd_list (search for def _cmd_list).
Acceptance
django-orm-lens list --json prints [{"app": "...", "model": "..."}, ...]
django-orm-lens list unchanged (backward compat)
- Add one test in
cli/tests/ covering the new output shape
- All existing
pytest -q pass (currently 44)
Difficulty
S (< 1 hour). Pattern to follow: how _cmd_scan handles --format — just mirror it.
What
The
django-orm-lens listsubcommand currently emits plainapp.Modellines.scanalready supports--format json. Add--json(or--format json) support tolistfor pipe-friendly machine output.Where
cli/django_orm_lens/cli.py—_cmd_list(search fordef _cmd_list).Acceptance
django-orm-lens list --jsonprints[{"app": "...", "model": "..."}, ...]django-orm-lens listunchanged (backward compat)cli/tests/covering the new output shapepytest -qpass (currently 44)Difficulty
S (< 1 hour). Pattern to follow: how
_cmd_scanhandles--format— just mirror it.