aboutsummaryrefslogtreecommitdiff
path: root/docs/STATE.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 20:11:19 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 20:11:19 +0200
commit8351fa7752bb8341ef405a37ff7c73142715e981 (patch)
treedde603d313f4f26934f2ce20a22dfd9b69324cf0 /docs/STATE.md
parentbeafdbe0d64340387d619c38554976410129f05b (diff)
downloadbokf-8351fa7752bb8341ef405a37ff7c73142715e981.tar.gz
bokf-8351fa7752bb8341ef405a37ff7c73142715e981.zip
commands: split the command table by domain
Diffstat (limited to 'docs/STATE.md')
-rw-r--r--docs/STATE.md9
1 files changed, 9 insertions, 0 deletions
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_<domain>[]` tables live in
+ `src/cmd_<domain>.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`,