Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lifecycle/ak.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
"""Wrapper for lifecycle/ak, to be installed by poetry"""

from os import system
from os import system, waitstatus_to_exitcode
from pathlib import Path
from sys import argv
from sys import argv, exit


def main():
"""Wrapper around ak bash script"""
current_path = Path(__file__)
args = " ".join(argv[1:])
system(f"{current_path.parent}/ak {args}") # nosec
res = system(f"{current_path.parent}/ak {args}") # nosec
exit_code = waitstatus_to_exitcode(res)
exit(exit_code)


if __name__ == "__main__":
Expand Down