Running application with special command
This commit is contained in:
parent
bbaeb40952
commit
3d466c8e82
3 changed files with 16 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
__all__ = [
|
||||||
|
"cli",
|
||||||
|
]
|
||||||
|
|
||||||
|
from .cli import cli
|
6
src/rectes/cli.py
Normal file
6
src/rectes/cli.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import click
|
||||||
|
|
||||||
|
|
||||||
|
@click.command()
|
||||||
|
def cli():
|
||||||
|
print("Hello, world")
|
Loading…
Reference in a new issue