Building the command-line interface

This commit is contained in:
Luke Murphy 2020-02-28 18:46:33 +00:00
parent 6182603b41
commit f05ff85bd3
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 25 additions and 0 deletions

21
calibrestekje/__main__.py Normal file
View File

@ -0,0 +1,21 @@
"""Command-line entrypoint module."""
from argparse import ArgumentParser
# TODO: https://github.com/agronholm/sqlacodegen
def generate_bindings():
"""Spit out generated SQLAlchemy bindings."""
pass
def entrypoint(args=None):
"""Command-line entry point."""
parser = ArgumentParser(description="Calibrestekje command-line interface")
parser.parse_args()
generate_bindings()
if __name__ == "__main__":
entrypoint()

View File

@ -61,3 +61,7 @@ docs =
sphinx_rtd_theme
changelog =
towncrier <= 19.2.0, < 20.0
[options.entry_points]
console_scripts =
calibrestekje = calibrestekje.__main__:entrypoint