[cli] add entry point to be just "halfapi" in Pipfile (__main__.py)

This commit is contained in:
Maxime Alves LIRMM 2020-10-07 07:02:15 +02:00
parent 0a34948b98
commit b651d90f0e
2 changed files with 4 additions and 1 deletions

View File

@ -20,4 +20,4 @@ pyjwt = "*"
python_version = "3"
[scripts]
halfapi = "halfapi.cli.cli:cli"
halfapi = "python -m halfapi"

3
halfapi/__main__.py Normal file
View File

@ -0,0 +1,3 @@
from .cli.cli import cli
if __name__ == '__main__':
cli()