add entrypoint to setup
This commit is contained in:
parent
0ace1bcad2
commit
cb4747fcf1
@ -100,5 +100,9 @@ def wrap(command: List[str], config: Path, retries: int, version):
|
||||
|
||||
|
||||
# %% main
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
wrap()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
5
setup.py
5
setup.py
@ -20,4 +20,9 @@ setup(
|
||||
"click",
|
||||
"gotify",
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"goat_monitor = goat_monitor.goat_monitor:main",
|
||||
],
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user