mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
feat: add new configuration files for Apt, Apk, Java, and Yum
Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
+2
-2
@@ -28,7 +28,7 @@ def _file(relative: str) -> str:
|
||||
|
||||
|
||||
def render_template(text: str) -> str:
|
||||
"""Render a tests/configs/*.yaml.tmpl fixture as a Jinja2 template.
|
||||
"""Render a tests/configs/*.yaml.j2 fixture as a Jinja2 template.
|
||||
|
||||
Custom filters: `| env` reads an environment variable, `| file` reads a
|
||||
file relative to tests/. Combine with Jinja2's built-in `indent` filter
|
||||
@@ -48,7 +48,7 @@ def render_template(text: str) -> str:
|
||||
|
||||
@app.command(
|
||||
name="render-config",
|
||||
help="Render a tests/configs/*.yaml.tmpl fixture into a ready-to-use configuration.",
|
||||
help="Render a tests/configs/*.yaml.j2 fixture into a ready-to-use configuration.",
|
||||
)
|
||||
def render_config(
|
||||
template: Annotated[pathlib.Path, typer.Argument(exists=True, dir_okay=False)],
|
||||
|
||||
Reference in New Issue
Block a user