Compare commits
No commits in common. "8aacb91433b13ddcf83142e7817c35132e7377ba" and "82df953c70dda734c1462c988ee225622fd52e62" have entirely different histories.
8aacb91433
...
82df953c70
6 changed files with 14 additions and 27 deletions
|
|
@ -1,9 +1,3 @@
|
|||
## 0.2.0a31 (2025-11-07)
|
||||
|
||||
### Fix
|
||||
|
||||
- better layers support
|
||||
|
||||
## 0.2.0a30 (2025-11-07)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.cli"
|
||||
version = "0.2.0a31"
|
||||
version = "0.2.0a30"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "CLI for Rougail"
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ def manage_warnings(warnings):
|
|||
def load_user_datas(rougailconfig):
|
||||
layer_datas = {}
|
||||
if not rougailconfig["cli.load_config"]:
|
||||
return None, None, None, {"errors": [], "warnings": []}
|
||||
return None, {"errors": [], "warnings": []}
|
||||
try:
|
||||
user_data_names = rougailconfig["step.user_data"]
|
||||
except PropertiesOptionError:
|
||||
|
|
@ -195,8 +195,7 @@ def load_user_datas(rougailconfig):
|
|||
layer_name = None
|
||||
# data user
|
||||
user_datas = []
|
||||
if has_layers:
|
||||
layer_datas[layer_name] = {}
|
||||
layer_datas[layer_name] = {}
|
||||
for user_data_name in layer:
|
||||
path = (
|
||||
Path(__file__).parent.parent
|
||||
|
|
@ -218,8 +217,7 @@ def load_user_datas(rougailconfig):
|
|||
subconfig,
|
||||
rougailconfig=rougailconfig,
|
||||
).run():
|
||||
if has_layers:
|
||||
layer_datas[layer_name].setdefault(user_data_name, []).append(user_data["source"])
|
||||
layer_datas[layer_name].setdefault(user_data_name, []).append(user_data["source"])
|
||||
user_datas.append(user_data)
|
||||
if user_datas:
|
||||
new_err_warn = UserDatas(subconfig).user_datas(user_datas, invalid_user_datas_error=invalid_user_datas_error, unknown_user_datas_error=unknown_user_datas_error)
|
||||
|
|
@ -228,15 +226,14 @@ def load_user_datas(rougailconfig):
|
|||
err_warn[level].extend(datas)
|
||||
for layer_name, interactive_user_data in interactive_user_datas.items():
|
||||
for layer, rougail_user_datas in interactive_user_data.items():
|
||||
if has_layers:
|
||||
if len(layers) > 1:
|
||||
subconfig = subconfig.config("_".join(layer))
|
||||
subconfig.owner.set(subconfig.path())
|
||||
for user_data in rougail_user_datas(
|
||||
subconfig,
|
||||
rougailconfig=rougailconfig,
|
||||
).run():
|
||||
layer_datas[layer_name].setdefault(user_data_name, []).append(user_data["source"])
|
||||
if has_layers and len(layers) > 1:
|
||||
subconfig = subconfig.config("_".join(layer))
|
||||
subconfig.owner.set(subconfig.path())
|
||||
for user_data in rougail_user_datas(
|
||||
subconfig,
|
||||
rougailconfig=rougailconfig,
|
||||
).run():
|
||||
layer_datas[layer_name].setdefault(user_data_name, []).append(user_data["source"])
|
||||
|
||||
return layer_datas, metaconfig, subconfig, err_warn
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.2.0a31"
|
||||
__version__ = "0.2.0a30"
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@
|
|||
│ Variable Modified value │
|
||||
│ ([32m⏳ Original default value[0m) │
|
||||
╰──────────────────────────────────────╯
|
||||
╭─────────── Layers ────────────╮
|
||||
│ environment variable │
|
||||
│ the YAML file "yaml/file.yml" │
|
||||
╰───────────────────────────────╯
|
||||
Variables:
|
||||
[94m┗━━ [0m📓 a description: a yaml value ◀ loaded from the YAML file "yaml/file.yml"
|
||||
[94m [0m(⏳ [32mmy env value[0m ◀ loaded from environment variable ⏳ [32mmy env value[0m)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
["tiramisu", "tiramisu-cmdline-parser", "rougail", "rougail-cli", "rougail-structural-bitwarden", "rougail-user-data-ansible", "rougail-user-data-bitwarden", "rougail-user-data-commandline", "rougail-user-data-environment", "rougail-user-data-questionary", "rougail-user-data-yaml", "rougail-output-ansible", "rougail-output-console", "rougail-output-doc", "rougail-output-json"]
|
||||
["tiramisu", "tiramisu-cmdline-parser", "rougail", "rougail-cli", "rougail-structural-bitwarden", "rougail-user-data-ansible", "rougail-user-data-bitwarden", "rougail-user-data-commandline", "rougail-user-data-environment", "rougail-user-data-yaml", "rougail-output-ansible", "rougail-output-console", "rougail-output-doc", "rougail-output-json"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue