We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3763b42 + 41e4b9b commit 8cdfdafCopy full SHA for 8cdfdaf
pyproject.toml
@@ -44,6 +44,9 @@ dependencies = [
44
]
45
dynamic = ["version"]
46
47
+[project.scripts]
48
+dispatch-cli = "frequenz.client.dispatch.__main__:main"
49
+
50
[[project.authors]]
51
name = "Frequenz Energy-as-a-Service GmbH"
52
email = "[email protected]"
src/frequenz/client/dispatch/__main__.py
@@ -248,8 +248,13 @@ async def display_help() -> None:
248
click.echo(e)
249
250
251
-if __name__ == "__main__":
+def main() -> None:
252
+ """Entrypoint for the CLI."""
253
if len(sys.argv) > 1:
254
asyncio.run(cli.main())
255
else:
256
asyncio.run(interactive_mode())
257
258
259
+if __name__ == "__main__":
260
+ main()
0 commit comments