From 8351fa7752bb8341ef405a37ff7c73142715e981 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sun, 20 Sep 2026 20:11:19 +0200 Subject: commands: split the command table by domain --- docs/STATE.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/STATE.md b/docs/STATE.md index 0c7f4f7..8a1d433 100644 --- a/docs/STATE.md +++ b/docs/STATE.md @@ -170,6 +170,15 @@ check. Inställningar. pty golden scenarios `invoices`, `customers`, `invoice-form`. +22. **Command table split (2026-09-20)**: `src/commands.c` keeps only + discovery (`describe`, `agent.instructions`), `command_find` and the + registry; handlers, argument schemas and `g_cmd_[]` tables live in + `src/cmd_.c`, with shared helpers in `src/cmd_util.[ch]`. + `g_command_tables[]` registers the files in the original catalogue order + so `describe` output is byte-identical, and + `scripts/check-consistency.sh` / `make check` scans `src/commands.c` and + every `src/cmd_*.c`. + ## Pending decisions - Attachments are complete: download (voucher detail `f`, Underlag `Enter`, -- cgit v1.3