add entrypoint to setup

This commit is contained in:
Brendan Haines 2024-09-14 13:42:58 -06:00
parent 0ace1bcad2
commit cb4747fcf1
2 changed files with 10 additions and 1 deletions

@ -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()

@ -20,4 +20,9 @@ setup(
"click",
"gotify",
],
entry_points={
"console_scripts": [
"goat_monitor = goat_monitor.goat_monitor:main",
],
},
)