Unverified Commit 343e55da authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

symphony/cli: add main() function to __main__ for pyproject.toml entrypoint

parent 0edf10fe
......@@ -33,10 +33,13 @@ app.add_typer(audit.app, name="audit")
@app.callback()
@async_cli()
async def main(
async def amain(
ns: Annotated[str, Option(help='Namespace to operate in.')] = 'foo/bar/baz',
):
state.namespace = ns
if __name__ == "__main__":
def main():
app()
if __name__ == "__main__":
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment