PLAN.md: siblings' configure items in lowercase, and keep siblings off CoreDesktop's commands
shellcheck / shellcheck (push) Successful in 22s
shellcheck / shellcheck (push) Successful in 22s
As MiniServer's bb8729d. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,14 +41,16 @@ steps are done. Follow-ups:
|
|||||||
## Other
|
## Other
|
||||||
|
|
||||||
- [ ] Let a sibling add its own item to `configure`, as MiniServer does
|
- [ ] Let a sibling add its own item to `configure`, as MiniServer does
|
||||||
since its commit 0d4582a (copy from there: `configure`,
|
since its commits 0d4582a and bb8729d (copy from there: `configure`,
|
||||||
`tests/configure.bats`, and the `configure.sh` section of
|
`tests/configure.bats`, and the `configure.sh` section of
|
||||||
`skills/sibling-project-format.md`). A sibling with a `configure.sh`
|
`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,
|
at the top of its repo, in the same format as `configure.d`'s items,
|
||||||
gets an item named after the sibling. Steps:
|
gets an item named after the sibling, in lowercase. Steps:
|
||||||
1. `configure`: add `SIBLINGS="$HOME/.local/share/siblings"`. Have
|
1. `configure`: add `SIBLINGS="$HOME/.local/share/siblings"`. Have
|
||||||
`item_name` give the sibling folder's name for
|
`item_name` give the sibling folder's name, in lowercase, for
|
||||||
`$SIBLINGS/<name>/configure.sh`. Add an `item_files` function that
|
`$SIBLINGS/<name>/configure.sh` (`HamPackServer` →
|
||||||
|
`hampackserver`), and have `configure <item>` compare it with
|
||||||
|
`${1,,}`, so any case finds it. Add an `item_files` function that
|
||||||
prints `configure.d/*.sh`, then `$SIBLINGS/*/configure.sh`, skipping
|
prints `configure.d/*.sh`, then `$SIBLINGS/*/configure.sh`, skipping
|
||||||
any name seen already, so CoreDesktop's item wins a clash. Use it in
|
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
|
`load_items` and in the `configure <item>` lookup. Read it into an
|
||||||
@@ -64,6 +66,12 @@ steps are done. Follow-ups:
|
|||||||
non-zero on failure; `$COREDESKTOP`, `confirm` and `confirm_yes`
|
non-zero on failure; `$COREDESKTOP`, `confirm` and `confirm_yes`
|
||||||
are there, since it's sourced rather than run with `bash`; and don't
|
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.
|
take a name `configure --list` already shows. Add a checklist line.
|
||||||
|
Also add a rule, with its own checklist line, under `install.sh`'s
|
||||||
|
"Install commands into `~/.local/bin`": don't use the name of one
|
||||||
|
of CoreDesktop's commands (`configure`, `update`, `refresh`,
|
||||||
|
`sibling`, `version`, `audit`, `report`, `webapp`), which are in
|
||||||
|
`~/.local/bin` too. HamPackServer did, and its `configure`
|
||||||
|
replaced MiniServer's on every `update`.
|
||||||
3. `README.md`: one sentence where `configure --list` is described
|
3. `README.md`: one sentence where `configure --list` is described
|
||||||
(around line 304) saying sibling projects can add an item, named
|
(around line 304) saying sibling projects can add an item, named
|
||||||
after the project.
|
after the project.
|
||||||
|
|||||||
Reference in New Issue
Block a user