diff --git a/setup.cfg b/setup.cfg index 384c067..abc8b2d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,6 +8,7 @@ packages = find: install_requires = fastapi==0.78.0 aioredis==2.0.1 + click==8.1.3 python_requires = >=3.10 [options.extras_require] @@ -16,5 +17,9 @@ hiredis = development = pre-commit==2.19.0 +[options.entry_points] +console_scripts = + rectes = rectes:cli + [options.packages.find] where = src diff --git a/src/rectes/__init__.py b/src/rectes/__init__.py index e69de29..482ed66 100644 --- a/src/rectes/__init__.py +++ b/src/rectes/__init__.py @@ -0,0 +1,5 @@ +__all__ = [ + "cli", +] + +from .cli import cli diff --git a/src/rectes/cli.py b/src/rectes/cli.py new file mode 100644 index 0000000..bb605b9 --- /dev/null +++ b/src/rectes/cli.py @@ -0,0 +1,6 @@ +import click + + +@click.command() +def cli(): + print("Hello, world")