mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-20 17:06:42 +00:00
The command registry moves to `registry.rs`: `CommandSpec`, the `Install` record, `install()`, `find`, `spec`, `command_specs` and the command-list helpers. A process installs its command tables once; installing the same tables again does nothing, and different tables are refused with `InstallConflict`, which every later command then reports. A session that runs a command before any install gets `NotInstalled`. `install.rs` holds the full table list in today's order, `install()`, and the `command_specs`/`find` wrappers that install first, which the public `commands::` paths name. `Session::new()` installs. The order test and `command_ids.txt` move with the list and read the ids from it. The tables `install.rs` lists are public: the table fragments and seven command modules that were private. `scripts/engine_split/install_tables.py` moves a branch's added or removed command tables (the old `v.extend(...)` lines or `SPECS` entries) into the install list.