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") ...@@ -33,10 +33,13 @@ app.add_typer(audit.app, name="audit")
@app.callback() @app.callback()
@async_cli() @async_cli()
async def main( async def amain(
ns: Annotated[str, Option(help='Namespace to operate in.')] = 'foo/bar/baz', ns: Annotated[str, Option(help='Namespace to operate in.')] = 'foo/bar/baz',
): ):
state.namespace = ns state.namespace = ns
def main():
app()
if __name__ == "__main__": if __name__ == "__main__":
app() main()
\ No newline at end of file
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