erplibre/script/addons
Mathieu Benoit 95a6ba558e [ADD] migration: make Enter mean the answer you always give
Auto-run promised to "take the default after five seconds", but every
default was EMPTY: it took nothing. Worse, half the prompts of a
migration are asked by separate processes — the theme uninstaller, the
stale-SCSS detector, the smoke test. They knew nothing of auto-run and
waited forever for a keystroke that never came.

The countdown now lives in one file and travels through the ENVIRONMENT,
the only channel a fork shares. Enter takes the default everywhere, not
only under auto-run: a prompt that prints (Y/n) and does otherwise is
worse than no prompt. Every text was rewritten to say what Enter does,
and every default kept an explicit way out.

Two defaults now write. Both are tenable only because the backup runs
first, and a test locks that ORDER rather than trusting a promise.

--- FR ---

[ADD] migration : faire d'Entrée la réponse qu'on donne toujours

L'auto-exécution promettait « le défaut après cinq secondes », mais tous
les défauts étaient VIDES : elle ne prenait rien. Pire, la moitié des
invites d'une migration sont posées par d'autres processus — le
désinstalleur de thème, le détecteur de SCSS figé, le test de fumée. Ils
ignoraient l'auto-exécution et attendaient sans fin une frappe.

Le compte à rebours tient désormais dans un seul fichier et voyage par
l'ENVIRONNEMENT, le seul canal qu'un fork partage. Entrée vaut le défaut
partout, pas seulement en auto : une invite qui affiche (Y/n) et fait
l'inverse est pire que pas d'invite. Chaque texte dit ce que fait Entrée,
et chaque défaut garde une issue explicite.

Deux défauts écrivent. Ils ne tiennent que parce que la sauvegarde passe
d'abord, et un test verrouille cet ORDRE plutôt qu'une promesse.

Assisted-by: Claude Opus 5
2026-08-22 07:23:59 -04:00
..
check_addons_exist.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
coverage_install_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
coverage_install_addons_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
coverage_install_addons_restore_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_cg_template_restore_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_debug.sh [ADD] script addons install with debug 2026-01-23 02:57:20 -05:00
install_addons_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_from_file.sh [IMP] support change odoo and python version 2024-11-02 02:26:02 -04:00
install_addons_restore_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_theme.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
reinstall_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
theme_leftover.py [ADD] migration: make Enter mean the answer you always give 2026-08-22 07:23:59 -04:00
uninstall_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
uninstall_addons_theme.sh [FIX] addons: stop calling a leftover report a failed command 2026-08-22 07:23:59 -04:00
update_addons_all.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
update_prod_to_dev.sh [IMP] todo support odoo upgrade 2025-10-31 01:43:26 -04:00