Skip to content

Commit

Permalink
add new launcher apio.py, for developers
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Feb 20, 2024
1 parent 26bc4ba commit 52e0800
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions apio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!venv/bin/python
"""Run apio for debugging"""
# ------------------------------------------------
# -- Run apio for debugging
# -- It is not part of apio (it is not installed).
# -- It is just a launcher for the developers
#-------------------------------------------------

import sys

# -- Import the apio entry point
from apio.__main__ import cli as apio

from click.testing import CliRunner

# -- Read the arguments
cmds = sys.argv[1:]

#-- Execute "apio cmds"
result = CliRunner().invoke(apio, cmds)

#-- Print the command output on the console
print(result.output)

0 comments on commit 52e0800

Please sign in to comment.