PLAN.md: let a sibling add its own item to configure
shellcheck / shellcheck (push) Successful in 19s
shellcheck / shellcheck (push) Successful in 19s
As MiniServer does since its commit 0d4582a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,6 +40,42 @@ steps are done. Follow-ups:
|
|||||||
|
|
||||||
## Other
|
## 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/<name>/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 <item>` 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 <sibling>`; 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
|
- [ ] Restart Federated Calendar after an update installs a new version. Like
|
||||||
GNOME Calendar, it keeps running in the background after its window
|
GNOME Calendar, it keeps running in the background after its window
|
||||||
closes, so it goes on running the old version until the next login.
|
closes, so it goes on running the old version until the next login.
|
||||||
|
|||||||
Reference in New Issue
Block a user