Lauri Ojansivu
74a8f931f1
Twelve one-line wrappers become menu commands, and both menus get a CLI.
...
The wrappers first. `releases/ufw-enable.sh` was one line - `sudo ufw enable` -
and so were eleven others: ssh-start/stop, snapd-start/stop, docker-start/stop,
multipass-remove, syncloop, git-add-revert, stable-tag and ufw-disable. Nothing
in the repository called them except the menus added yesterday, so they are the
command itself now, in the same menu entries. Checked one by one before
deleting: docker-build-deps.sh looked like the same kind of thing and is NOT
gone, because releases/docker-build.sh runs it.
An entry is "Group|Label|what|prompt|platform|key" now. `what` is a path under
releases/ or, with a leading "!", the command. `platform` is "linux" for the ten
that are systemd, ufw, snap or multipass: build.bat does not offer those,
because Windows cannot do them at all - it is not a parity gap, and the guard
knows the difference. ssh-start ran `systemctl enable ssh` twice; the entry
enables AND starts it, like its stop counterpart always did.
Then the CLI, which is what makes any of this usable from a script or a cron
entry:
./build.sh --help usage and examples
./build.sh --list all 84 names, with what each one does
./build.sh <name> [arguments] run one, without the menu
./build.sh release-snap 10.50
./build.sh push-translation ja
./build.sh ufw-enable what releases/ufw-enable.sh used to do
The name is the file name without its extension, or - for the twelve commands -
the name of the wrapper file it replaced, so anything anybody had in a script
keeps working. Arguments after the name are passed through unchanged. An
unknown name says so and exits 2 instead of doing nothing. build.bat has the
same thing, dispatched before the menu, and both menus have a "CLI commands"
entry that prints the help and the list.
tests/buildScriptParity.test.cjs gains: both scripts must dispatch from the
command line, every name build.sh answers to must work in build.bat unless it
is linux-only, the linux-only ones must NOT be in build.bat, and every example
in the help text must be a real name - which is the guard that catches a help
text teaching a command that fails.
Thanks to xet7 !
2026-07-29 04:04:47 +03:00
..
2026-07-28 02:02:58 +03:00
2026-06-18 04:14:59 +03:00
2026-07-29 02:24:51 +03:00
2026-06-23 16:50:24 +03:00
2026-07-28 04:28:36 +03:00
2026-07-22 12:15:56 +03:00
2026-07-25 22:25:31 +03:00
2026-07-28 17:59:17 +03:00
2026-07-28 13:29:23 +03:00
2026-07-26 08:27:04 +03:00
2026-07-26 18:21:44 +03:00
2026-07-27 23:57:48 +03:00
2026-07-26 09:54:23 +03:00
2026-07-17 03:27:33 +03:00
2026-05-27 20:51:44 +03:00
2026-07-26 20:29:06 +03:00
2026-07-17 03:34:23 +03:00
2026-07-17 03:21:02 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 17:40:24 +03:00
2026-07-27 20:58:43 +03:00
2026-07-17 03:07:59 +03:00
2026-07-17 01:43:53 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-07-11 01:53:07 +03:00
2026-07-11 00:14:49 +03:00
2026-07-26 09:39:03 +03:00
2026-07-11 00:14:49 +03:00
2026-07-17 03:41:20 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 20:05:32 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 22:25:15 +03:00
2026-07-25 21:34:37 +03:00
2026-07-17 03:07:59 +03:00
2026-07-26 22:24:21 +03:00
2026-07-24 03:23:37 +03:00
2026-07-23 15:03:42 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 08:06:14 +03:00
2026-07-28 22:25:15 +03:00
2026-07-17 03:07:59 +03:00
2026-07-24 19:32:24 +03:00
2026-07-29 04:04:47 +03:00
2026-07-25 23:19:32 +03:00
2026-07-23 18:55:30 +03:00
2026-06-23 08:50:29 +03:00
2026-07-16 17:40:24 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 18:04:36 +03:00
2026-07-23 18:59:30 +03:00
2026-07-22 16:22:39 +03:00
2026-07-23 18:55:30 +03:00
2026-06-13 17:19:51 +03:00
2026-07-23 22:08:24 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 23:43:27 +03:00
2026-07-18 02:05:00 +03:00
2026-07-28 22:56:13 +03:00
2026-07-29 02:27:46 +03:00
2026-07-28 22:56:13 +03:00
2026-07-23 18:55:30 +03:00
2026-07-17 03:07:59 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 17:40:24 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 13:27:50 +03:00
2026-07-27 21:37:44 +03:00
2026-07-24 03:55:46 +03:00
2026-07-20 03:11:07 +03:00
2026-07-25 16:58:54 +03:00
2026-07-17 23:01:52 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 02:37:50 +03:00
2026-07-23 18:59:30 +03:00
2026-06-23 16:47:00 +03:00
2026-07-28 04:28:36 +03:00
2026-07-27 17:17:36 +03:00
2026-07-22 10:15:50 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-25 00:08:56 +03:00
2026-07-20 03:11:07 +03:00
2026-07-28 00:58:30 +03:00
2026-07-29 04:04:47 +03:00
2026-07-28 01:05:27 +03:00
2026-07-28 04:28:36 +03:00
2026-07-24 09:13:02 +03:00
2026-07-24 04:56:39 +03:00
2026-07-28 22:25:15 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 10:14:29 +03:00
2026-07-23 19:16:24 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 18:04:40 +03:00
2026-07-26 15:02:55 +03:00
2026-07-16 19:12:59 +03:00
2026-07-22 10:35:52 +03:00
2026-07-28 04:28:36 +03:00
2026-07-22 10:35:52 +03:00
2026-07-16 17:40:24 +03:00
2026-07-21 10:06:40 +03:00
2026-07-17 15:04:48 +03:00
2026-07-25 16:49:19 +03:00
2026-07-25 16:49:19 +03:00
2026-06-22 15:46:43 +03:00
2026-07-27 21:39:51 +03:00
2026-07-17 16:59:42 +03:00
2026-07-27 11:28:52 +03:00
2026-07-26 08:10:52 +03:00
2026-07-25 21:34:37 +03:00
2026-07-27 22:06:41 +03:00
2026-07-22 09:21:21 +03:00
2026-07-23 18:59:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-07-23 00:52:46 +03:00
2026-07-23 00:52:46 +03:00
2026-07-26 03:18:31 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 03:07:59 +03:00
2026-07-06 16:02:56 +03:00
2026-07-17 03:36:07 +03:00
2026-07-09 09:45:53 +03:00
2026-07-26 00:23:35 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-17 03:34:23 +03:00
2026-07-28 14:38:49 +03:00
2026-07-22 09:21:21 +03:00
2026-07-19 18:36:11 +03:00
2026-07-17 03:07:59 +03:00
2026-07-16 10:17:13 +02:00
2026-07-17 03:07:59 +03:00
2026-07-13 09:16:33 +03:00
2026-07-17 03:07:59 +03:00
2026-07-09 09:45:53 +03:00
2026-07-28 17:59:17 +03:00
2026-06-23 16:48:59 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-22 13:02:42 +03:00
2026-07-17 16:59:42 +03:00
2026-07-22 16:22:39 +03:00
2026-07-23 19:16:24 +03:00
2026-07-28 04:28:36 +03:00
2026-07-28 17:59:17 +03:00
2026-05-27 20:51:44 +03:00
2026-07-17 04:52:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-19 18:36:11 +03:00
2026-07-17 03:07:59 +03:00
2026-07-09 10:09:32 +03:00
2026-07-25 21:40:30 +03:00
2026-07-25 21:02:54 +03:00
2026-07-25 22:34:13 +03:00
2026-07-28 04:28:36 +03:00
2026-07-25 23:00:15 +03:00
2026-07-25 22:03:07 +03:00
2026-07-25 21:34:37 +03:00
2026-07-26 21:56:16 +03:00
2026-07-11 00:14:49 +03:00
2026-07-17 23:48:26 +03:00
2026-07-28 17:59:17 +03:00
2026-07-06 10:55:29 +03:00
2026-07-25 22:13:46 +03:00
2026-07-17 03:07:59 +03:00
2026-07-24 16:18:24 +03:00
2026-07-17 03:07:59 +03:00
2026-07-17 03:07:59 +03:00
2026-07-26 15:16:16 +03:00
2026-07-09 02:14:07 +03:00
2026-07-27 23:39:37 +03:00
2026-07-28 16:44:30 +03:00
2026-07-17 18:29:28 +03:00
2026-07-26 20:01:45 +03:00
2026-07-27 22:06:41 +03:00
2026-07-26 01:58:15 +03:00
2026-07-24 03:23:37 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 12:15:56 +03:00
2026-07-28 04:28:36 +03:00
2026-07-22 21:48:29 +03:00
2026-07-17 03:34:23 +03:00
2026-07-06 10:33:15 +03:00
2026-07-21 10:06:40 +03:00
2026-07-21 10:06:41 +03:00
2026-07-21 10:06:40 +03:00
2026-07-21 10:06:40 +03:00
2026-07-28 02:02:58 +03:00
2026-07-09 02:14:07 +03:00
2026-07-29 04:04:47 +03:00
2026-07-29 04:04:47 +03:00
2026-06-23 08:50:29 +03:00
2026-07-22 12:37:49 +03:00
2026-07-09 02:14:07 +03:00
2026-07-28 04:28:36 +03:00
2026-07-09 09:45:53 +03:00
2026-07-09 02:14:07 +03:00
2026-07-16 17:40:24 +03:00
2026-07-22 10:15:50 +03:00
2026-07-28 04:28:36 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 03:49:45 +03:00
2026-07-17 21:40:37 +03:00
2026-07-28 03:39:24 +03:00
2026-07-17 03:36:50 +03:00
2026-07-19 18:36:11 +03:00
2026-07-09 09:45:53 +03:00
2026-07-28 12:25:55 +03:00
2026-07-19 12:22:56 +03:00
2026-07-25 02:28:58 +03:00
2026-07-26 09:48:47 +03:00
2026-07-26 23:40:55 +03:00
2026-07-18 19:42:19 +03:00
2026-07-25 22:08:38 +03:00
2026-07-28 14:49:41 +03:00
2026-07-16 17:40:24 +03:00
2026-07-25 16:22:10 +03:00
2026-07-17 20:20:06 +03:00
2026-07-23 18:55:30 +03:00
2026-07-26 08:27:04 +03:00
2026-07-28 12:13:03 +03:00
2026-07-23 18:59:30 +03:00
2026-07-24 10:14:29 +03:00
2026-07-13 09:16:33 +03:00
2026-07-13 09:16:33 +03:00
2026-07-17 03:21:02 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 18:46:09 +03:00
2026-07-17 03:34:23 +03:00
2026-07-28 16:37:13 +03:00
2026-07-17 03:44:38 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 09:45:53 +03:00
2026-07-28 12:25:55 +03:00
2026-07-22 12:15:56 +03:00
2026-07-25 20:50:20 +03:00
2026-07-26 00:17:58 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-07-28 04:28:36 +03:00
2026-07-28 03:49:45 +03:00
2026-07-26 08:33:21 +03:00
2026-07-17 20:46:10 +03:00
2026-07-28 12:25:55 +03:00
2026-07-28 04:28:36 +03:00
2026-06-13 17:19:51 +03:00
2026-06-13 20:15:04 +03:00
2026-06-13 17:19:51 +03:00
2026-07-28 04:28:36 +03:00
2026-07-18 02:16:53 +03:00
2026-07-17 18:44:14 +03:00
2026-07-25 22:25:31 +03:00
2026-07-20 03:11:07 +03:00
2026-07-23 18:55:30 +03:00
2026-07-06 11:50:28 +03:00
2026-07-23 18:55:30 +03:00
2025-12-22 23:18:01 +02:00
2026-06-12 20:15:56 +03:00
2026-07-28 12:13:21 +03:00
2026-07-21 19:43:48 +03:00
2026-07-25 23:52:31 +03:00