Running application with special command

This commit is contained in:
Ivan Golikov 2022-06-13 00:54:27 +03:00
parent bbaeb40952
commit 3d466c8e82
3 changed files with 16 additions and 0 deletions

View file

@ -8,6 +8,7 @@ packages = find:
install_requires = install_requires =
fastapi==0.78.0 fastapi==0.78.0
aioredis==2.0.1 aioredis==2.0.1
click==8.1.3
python_requires = >=3.10 python_requires = >=3.10
[options.extras_require] [options.extras_require]
@ -16,5 +17,9 @@ hiredis =
development = development =
pre-commit==2.19.0 pre-commit==2.19.0
[options.entry_points]
console_scripts =
rectes = rectes:cli
[options.packages.find] [options.packages.find]
where = src where = src

View file

@ -0,0 +1,5 @@
__all__ = [
"cli",
]
from .cli import cli

6
src/rectes/cli.py Normal file
View file

@ -0,0 +1,6 @@
import click
@click.command()
def cli():
print("Hello, world")