Add a menu-driven entry to the polls CLI
`bin/cake polls` without a sub command offers list, search, open a poll (details, admin link, delete), remind and cleanup. It only wraps the existing commands, previews before destructive actions and asks first; every prompt has a safe default so closed stdin ends it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f0b5f7b2bb
commit
6e8fef022b
6 files changed
+222
-3
No files matched your search
+3
-1
@@ -13,7 +13,9 @@ Aufräumen und Erinnerungen, CI/CD, Release-Pakete, Container.
|
||||
Aufräumen per Cron: `bin/cake polls cleanup` (erst `remind`, dann idempotent löschen über `PollsTable::delete()` samt
|
||||
Folien/Bildern, danach `images_cleanup`; `--dry-run`; Cron-Einrichtung für Server und Docker steht in [deployment.md](deployment.md) unter
|
||||
„Cronjob einrichten“, im Container läuft kein cron). `last_admin_access` fließt nicht mehr ein. `polls show --link`
|
||||
ist die einzige Stelle, die den Admin-Link ausgibt (nie in `list`). Tests: `PollsCommandsTest.php` (leert vorher alle Umfragen).
|
||||
ist die einzige Stelle, die den Admin-Link ausgibt (nie in `list`). Das Menü `bin/cake polls` (`PollsMenuCommand`) ruft nur diese Befehle per `executeCommand()` auf; jede Abfrage hat eine
|
||||
Vorgabe (`0`/leer/`n`), damit geschlossene Eingabe es beendet statt zu schleifen; Löschen/Aufräumen erst nach Vorschau (`--dry-run`) und Rückfrage.
|
||||
Tests: `PollsCommandsTest.php` (leert vorher alle Umfragen).
|
||||
|
||||
## Deployment
|
||||
|
||||
|
||||
Reference in new issue
Block a user