diff --git a/apio.py b/apio.py new file mode 100755 index 00000000..c738b0ef --- /dev/null +++ b/apio.py @@ -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)