Compare commits

...

1 Commits

Author SHA1 Message Date
Marcelo Elizeche Landó
119c9d018a lifecycle: use subprocess.run for ak script wrapper 2026-05-04 19:29:13 -03:00

View File

@@ -1,17 +1,15 @@
"""Wrapper for lifecycle/ak, to be installed by uv"""
from os import system, waitstatus_to_exitcode
import subprocess
from pathlib import Path
from sys import argv, exit
def main():
"""Wrapper around ak bash script"""
current_path = Path(__file__)
args = " ".join(argv[1:])
res = system(f"{current_path.parent}/ak {args}") # nosec
exit_code = waitstatus_to_exitcode(res)
exit(exit_code)
script = Path(__file__).parent / "ak"
res = subprocess.run([str(script), *argv[1:]], check=False)
exit(res.returncode)
if __name__ == "__main__":