Compare commits
No commits in common. "e87bcbd4c8c9e698d69aee11732295d6b31550d2" and "60ee2a6feb9e5092341a062ce37af19485045344" have entirely different histories.
e87bcbd4c8
...
60ee2a6feb
3 changed files with 6 additions and 8 deletions
|
|
@ -1,9 +1,3 @@
|
|||
## 0.2.0a3 (2025-01-04)
|
||||
|
||||
### Fix
|
||||
|
||||
- remove upgrade feature (now in formatter project) + better support of not_for_commandline feature
|
||||
|
||||
## 0.2.0a2 (2024-12-11)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.cli"
|
||||
version = "0.2.0a3"
|
||||
version = "0.2.0a2"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "CLI for Rougail"
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ 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
|
||||
|
|
@ -38,8 +39,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',
|
||||
|
|
@ -53,6 +54,9 @@ 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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue