From 3abe6daff07e66a35a00e2420c4fdbf2125328dd Mon Sep 17 00:00:00 2001 From: David Young Date: Sun, 29 Nov 2026 14:36:47 -0700 Subject: [PATCH] PLAN.md: let a sibling add its own item to configure As MiniServer does since its commit 0d4582a. Co-Authored-By: Claude Opus 5.5 --- PLAN.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/PLAN.md b/PLAN.md index 0ce8ec3..16c6a6f 100644 --- a/PLAN.md +++ b/PLAN.md @@ -40,6 +40,42 @@ steps are done. Follow-ups: ## Other +- [ ] Let a sibling add its own item to `configure`, as MiniServer does + since its commit 0d4582a (copy from there: `configure`, + `tests/configure.bats`, and the `configure.sh` section of + `skills/sibling-project-format.md`). A sibling with a `configure.sh` + at the top of its repo, in the same format as `configure.d`'s items, + gets an item named after the sibling. Steps: + 1. `configure`: add `SIBLINGS="$HOME/.local/share/siblings"`. Have + `item_name` give the sibling folder's name for + `$SIBLINGS//configure.sh`. Add an `item_files` function that + prints `configure.d/*.sh`, then `$SIBLINGS/*/configure.sh`, skipping + any name seen already, so CoreDesktop's item wins a clash. Use it in + `load_items` and in the `configure ` lookup. Read it into an + array with `mapfile` first, not a `while read … < <(…)` loop, or + `run_configure`'s prompts read the loop's input instead of the + terminal. Mention siblings in the comment at the top. + 2. `skills/sibling-project-format.md`: add `configure.sh` to the file + table. Add a `### configure.sh` section: an example whose + `run_configure` calls the project's own `configure` command, and + these rules: only define things (it's sourced on every redraw); + `is_configured` and `is_installed` are quick, quiet and don't use + `sudo`; `run_configure` may prompt, is safe to re-run and returns + non-zero on failure; `$COREDESKTOP`, `confirm` and `confirm_yes` + are there, since it's sourced rather than run with `bash`; and don't + take a name `configure --list` already shows. Add a checklist line. + 3. `README.md`: one sentence where `configure --list` is described + (around line 304) saying sibling projects can add an item, named + after the project. + 4. `tests/configure.bats` (there are no `configure` tests yet): a + temporary `HOME` holding a copy of `configure`, made-up items in + its `configure.d` and made-up siblings. Test the order in `--list` + with each item's state; leaving out siblings without `configure.sh` + and ones whose `is_installed` fails; `configure `; a + sibling's prompt reading the terminal and using `confirm` and + `$COREDESKTOP`; a failure reported as "was not set up"; the name + clash; the menu's "a" running siblings' items; an unknown name. + - [ ] Restart Federated Calendar after an update installs a new version. Like GNOME Calendar, it keeps running in the background after its window closes, so it goes on running the old version until the next login.