Story: CLI entity coverage
Table of Contents
This page documents a story in Sprint 09. It captures the goal, current status, acceptance criteria, and the tasks that compose it.
Goal
Bring the CLI up to date with the entities added in earlier sprints, then refactor the resulting parsers behind a generic helper to remove boilerplate.
Status
| Field | Value |
|---|---|
| State | DONE |
| Parent sprint | Sprint 09 |
| Now | Completed 2026-01-12. |
| Waiting on | None. |
| Next | None. |
| Last touched | 2026-01-12 |
Acceptance
- list + delete commands cover roles, permissions, countries, change_reasons, change_reason_categories.
- Parsers refactored behind
simple_entity_config+handle_simple_entity_command. - Net reduction ~314 lines across the five parsers.
Tasks
| Task | State | Start | End | Description |
|---|---|---|---|---|
| Add missing entities to CLI | DONE | 2026-05-19 | 2026-01-12 | list + delete commands for roles, permissions, countries, change_reasons, change_reason_categories; JSON and table output; lookup by UUID/code/name as appropriate. |
| Refactor CLI entity parsers with generic helper | DONE | 2026-05-19 | 2026-01-12 | Introduce simple_entity_config + handle_simple_entity_command in parser_helpers; refactor the five new entity parsers behind it. Net reduction ~314 lines. |
Decisions
- Write all five, then extract the helper
- rule-of-three lets us see the shape clearly before generalising.
Out of scope
- Full CRUD on these entities — only list + delete in this pass.
See also
- CLI entity creator skill (sprint 08) — the skill this story exercises.