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)
|
## 0.2.0a30 (2025-11-07)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.cli"
|
name = "rougail.cli"
|
||||||
version = "0.2.0a31"
|
version = "0.2.0a30"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "CLI for Rougail"
|
description = "CLI for Rougail"
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ def manage_warnings(warnings):
|
||||||
def load_user_datas(rougailconfig):
|
def load_user_datas(rougailconfig):
|
||||||
layer_datas = {}
|
layer_datas = {}
|
||||||
if not rougailconfig["cli.load_config"]:
|
if not rougailconfig["cli.load_config"]:
|
||||||
return None, None, None, {"errors": [], "warnings": []}
|
return None, {"errors": [], "warnings": []}
|
||||||
try:
|
try:
|
||||||
user_data_names = rougailconfig["step.user_data"]
|
user_data_names = rougailconfig["step.user_data"]
|
||||||
except PropertiesOptionError:
|
except PropertiesOptionError:
|
||||||
|
|
@ -195,7 +195,6 @@ def load_user_datas(rougailconfig):
|
||||||
layer_name = None
|
layer_name = None
|
||||||
# data user
|
# data user
|
||||||
user_datas = []
|
user_datas = []
|
||||||
if has_layers:
|
|
||||||
layer_datas[layer_name] = {}
|
layer_datas[layer_name] = {}
|
||||||
for user_data_name in layer:
|
for user_data_name in layer:
|
||||||
path = (
|
path = (
|
||||||
|
|
@ -218,7 +217,6 @@ def load_user_datas(rougailconfig):
|
||||||
subconfig,
|
subconfig,
|
||||||
rougailconfig=rougailconfig,
|
rougailconfig=rougailconfig,
|
||||||
).run():
|
).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)
|
user_datas.append(user_data)
|
||||||
if user_datas:
|
if user_datas:
|
||||||
|
|
@ -228,8 +226,7 @@ def load_user_datas(rougailconfig):
|
||||||
err_warn[level].extend(datas)
|
err_warn[level].extend(datas)
|
||||||
for layer_name, interactive_user_data in interactive_user_datas.items():
|
for layer_name, interactive_user_data in interactive_user_datas.items():
|
||||||
for layer, rougail_user_datas in interactive_user_data.items():
|
for layer, rougail_user_datas in interactive_user_data.items():
|
||||||
if has_layers:
|
if has_layers and len(layers) > 1:
|
||||||
if len(layers) > 1:
|
|
||||||
subconfig = subconfig.config("_".join(layer))
|
subconfig = subconfig.config("_".join(layer))
|
||||||
subconfig.owner.set(subconfig.path())
|
subconfig.owner.set(subconfig.path())
|
||||||
for user_data in rougail_user_datas(
|
for user_data in rougail_user_datas(
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.2.0a31"
|
__version__ = "0.2.0a30"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,6 @@
|
||||||
│ Variable Modified value │
|
│ Variable Modified value │
|
||||||
│ ([32m⏳ Original default value[0m) │
|
│ ([32m⏳ Original default value[0m) │
|
||||||
╰──────────────────────────────────────╯
|
╰──────────────────────────────────────╯
|
||||||
╭─────────── Layers ────────────╮
|
|
||||||
│ environment variable │
|
|
||||||
│ the YAML file "yaml/file.yml" │
|
|
||||||
╰───────────────────────────────╯
|
|
||||||
Variables:
|
Variables:
|
||||||
[94m┗━━ [0m📓 a description: a yaml value ◀ loaded from the YAML file "yaml/file.yml"
|
[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)
|
[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