mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 12:47:04 +00:00
- 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
27 lines
625 B
Python
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)
|