"src/include/threadwise_gemm.hpp" did not exist on "6290e0b080ce54eca53c871f252ee312f8435a62"
Unverified Commit 729773e3 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

symphony/cli: add separate commands for guest token and link

parent 9679b068
...@@ -37,6 +37,19 @@ async def invite(email: str, first_name: str, last_name: str): ...@@ -37,6 +37,19 @@ async def invite(email: str, first_name: str, last_name: str):
@app.command() @app.command()
@async_cli() @async_cli()
async def guest(email: str, first_name: str, last_name: str): async def guest(email: str, first_name: str, last_name: str):
"""Invite a new user.""" """Create a new guest user."""
url = await client_provider.org_client.create_guest(organization, email, first_name, last_name) await client_provider.org_client.create_guest(organization, email, first_name, last_name)
print("Guest login link: {url}")
@app.command()
@async_cli()
async def guest_token(email: str, filename: str):
"""Generate token for guest account."""
tok = await client_provider.org_client.guest_token(organization, email)
tok.store_token(filename)
@app.command()
@async_cli()
async def guest_link(email: str, filename: str):
"""Generate magic login link for guest account."""
link = await client_provider.org_client.guest_magic_link(organization, email)
print(link)
\ 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