debian-forge/osbuild/__main__.py
David Rheinsberg 421414ef0b osbuild: extract CLI to prepare for additional entrypoints
This extracts the CLI entrypoint into `main_cli.py` and prepares the
codebase for the introduction of additional entrypoints. This should
not contain any functional changes.

The idea behind this is to add `main_api.py` (and maybe more in the
future), which will be similar to `main_cli.py` but contain the
`osbuild-api` entrypoint. This will make all entrypoints nicely symetric
and the only difference will be `setup.py` selecting the right
entrypoint for each executable, as well as `__main__.py` selecting the
entrypoint for the module itself (which we will keep to the CLI for
compatibility).
2020-04-28 15:39:54 +02:00

13 lines
257 B
Python
Executable file

"""OSBuild Main
This specifies the entrypoint of the osbuild module when run as executable. For
compatibility we will continue to run the CLI.
"""
import sys
from osbuild.main_cli import main_cli as main
if __name__ == "__main__":
sys.exit(main())