From a2b507c4711f1ad831c6ed64de3c0eb249e36653 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 30 Jul 2026 23:03:48 -0400 Subject: [PATCH] =?UTF-8?q?[IMP]=20script=20todo:=20d=C3=A9placer=20=C2=AB?= =?UTF-8?q?=20Mise=20=C3=A0=20jour=20=C2=BB=20du=20menu=20Execute=20vers?= =?UTF-8?q?=20Code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'entrée « Update - Update all developed staging source code » quitte le menu Execute (renumérotation 9->8 … 15->14, dispatch elif mis à jour) et rejoint le sous-menu « Code - Outil pour développeur » (dernière entrée, appelle prompt_execute_update). Le libellé/i18n (🔃) est réutilisé. Co-Authored-By: Claude Opus 4.8 (1M context) --- script/todo/todo.py | 47 ++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/script/todo/todo.py b/script/todo/todo.py index e546118..db61073 100755 --- a/script/todo/todo.py +++ b/script/todo/todo.py @@ -213,20 +213,19 @@ class TODO: ── {t("Sources & documentation")} ── [7] {t("Git - Git tools")} -[8] {t("Update - Update all developed staging source code")} -[9] {t("Doc - Documentation search")} +[8] {t("Doc - Documentation search")} ── {t("AI & automation")} ── -[10] {t("GPT code - AI assistant tools")} -[11] {t("Automation - Demonstration of developed features")} +[9] {t("GPT code - AI assistant tools")} +[10] {t("Automation - Demonstration of developed features")} ── {t("Deployment, network & security")} ── -[12] {t("Deploy - Deploy ERPLibre locally")} -[13] {t("Network - Network tools")} -[14] {t("Security - Dependency security audit")} +[11] {t("Deploy - Deploy ERPLibre locally")} +[12] {t("Network - Network tools")} +[13] {t("Security - Dependency security audit")} ── {t("Preferences")} ── -[15] {t("Language - Change language / Changer la langue")} +[14] {t("Language - Change language / Changer la langue")} [0] {t("Back")} """ while True: @@ -263,34 +262,30 @@ class TODO: if status is not False: return elif status == "8": - status = self.prompt_execute_update() - if status is not False: - return - elif status == "9": status = self.prompt_execute_doc() if status is not False: return - elif status == "10": + elif status == "9": status = self.prompt_execute_gpt_code() if status is not False: return - elif status == "11": + elif status == "10": status = self.prompt_execute_function() if status is not False: return - elif status == "12": + elif status == "11": status = self.prompt_execute_deploy() if status is not False: return - elif status == "13": + elif status == "12": status = self.prompt_execute_network() if status is not False: return - elif status == "14": + elif status == "13": status = self.prompt_execute_security() if status is not False: return - elif status == "15": + elif status == "14": status = self._change_language() if status is not False: return @@ -4181,6 +4176,16 @@ class TODO: } ) + # Déplacé depuis le menu Execute : mise à jour de tout le code source + # de dev en staging (sous-menu de mise à jour). + choices.append( + { + "prompt_description": t( + "Update - Update all developed staging source code" + ), + } + ) + help_info = self.fill_help_info(choices) while True: @@ -4189,10 +4194,12 @@ class TODO: if status == "0": return False elif status == str(len(choices)): - self.debug_ide() + self.prompt_execute_update() elif status == str(len(choices) - 1): - self.upgrade_module() + self.debug_ide() elif status == str(len(choices) - 2): + self.upgrade_module() + elif status == str(len(choices) - 3): self.open_shell_on_database() else: cmd_no_found = True