root: add ak wrapper script to be installed with poetry

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-01-04 22:13:26 +01:00
parent 4d9d7c5efb
commit 7d7acd8494
2 changed files with 18 additions and 0 deletions

15
lifecycle/ak.py Normal file
View File

@ -0,0 +1,15 @@
"""Wrapper for lifecycle/ak, to be installed by poetry"""
from os import system
from pathlib import Path
from sys import argv
def main():
"""Wrapper around ak bash script"""
current_path = Path(__file__)
args = " ".join(argv[1:])
system(f"{current_path.parent}/ak {args}") # nosec
if __name__ == "__main__":
main()

View File

@ -165,3 +165,6 @@ selenium = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
ak = "lifecycle.ak:main"