Files
computer-playbook/cli/fix/vars_main_files/__init__.py
T
kevinveenbirkenbach 2e6d973839 fix(build): align CLI module invocations and stabilize include generation
- Switch Makefile targets to direct module execution (cli.build.*)
- Remove obsolete flags and normalize tree invocation
- Minor formatting cleanups for readability and test stability
- Keep inventory and include paths consistent after package layout migration

https://chatgpt.com/share/6946eac4-eb48-800f-becb-f08420ab03a6
2025-12-20 19:28:14 +01:00

27 lines
625 B
Python

from __future__ import annotations
from . import __main__ as _main
# Expose configuration that tests monkeypatch
ROLES_DIR = _main.ROLES_DIR
def run(prefix: str, preview: bool = False, overwrite: bool = False):
# sync patched value into the implementation module
_main.ROLES_DIR = ROLES_DIR
return _main.run(prefix=prefix, preview=preview, overwrite=overwrite)
def process_role(*args, **kwargs):
_main.ROLES_DIR = ROLES_DIR
return _main.process_role(*args, **kwargs)
def main():
_main.ROLES_DIR = ROLES_DIR
return _main.main()
def __getattr__(name: str):
return getattr(_main, name)