"driver/vscode:/vscode.git/clone" did not exist on "bd22abb52ce6474cec412831f7320ba11920862a"
Unverified Commit 044d162a authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

symphony/cli: add --generate-token option to guest command

parent 729773e3
......@@ -36,9 +36,17 @@ async def invite(email: str, first_name: str, last_name: str):
@app.command()
@async_cli()
async def guest(email: str, first_name: str, last_name: str):
async def guest(
email: str,
first_name: str,
last_name: str,
generate_token: Annotated[str, Option(help='File name to store an auth token into, if specified.', show_default=False)] = ''
):
"""Create a new guest user."""
await client_provider.org_client.create_guest(organization, email, first_name, last_name)
if generate_token:
tok = await client_provider.org_client.guest_token(organization, email)
tok.store_token(generate_token)
@app.command()
@async_cli()
......
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