From 703b1ce70edc8ce0373e65e1c96dbef663520985 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 4 Jan 2025 11:59:43 +0100 Subject: [PATCH] fix: remove upgrade feature (now in formatter project) + better support of not_for_commandline feature --- src/rougail/cli/__main__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rougail/cli/__main__.py b/src/rougail/cli/__main__.py index ca0ebe9..4c0cbec 100644 --- a/src/rougail/cli/__main__.py +++ b/src/rougail/cli/__main__.py @@ -23,7 +23,6 @@ from pathlib import Path from rougail import Rougail from rougail.config import get_rougail_config -from rougail.update import RougailUpgrade from rougail.utils import load_modules try: from rougail.user_data_environment import RougailUserDataEnvironment @@ -39,8 +38,8 @@ def _main(): backward_compatibility=False, add_extra_options=False ) cmd_config = rougailconfig.config + cmd_config.property.setdefault(frozenset("not_for_commandline"), 'read_write', 'append') cmd_config.property.read_write() - cmd_config.property.add("not_for_commandline") if RougailUserDataEnvironment: fake_rougail_config = {'step.user_data': 'environment', 'environment.default_environment_name': 'ROUGAILCLI', @@ -54,9 +53,6 @@ def _main(): parser.parse_args() cmd_config.property.remove("not_for_commandline") cmd_config.property.read_only() - if rougailconfig["upgrade"]: - RougailUpgrade(rougailconfig=rougailconfig).run() - return try: user_data_names = rougailconfig["step.user_data"] except PropertiesOptionError: