mergin/cli.py
def login(ctx):
    """Login to the service and see how to set the token environment variable."""
    mc = ctx.obj["client"]
    if mc is not None:
        click.secho("Login successful!", fg="green")
        token = mc._auth_session["token"]
        click.secho(f'To set the MERGIN_AUTH variable run:\nexport MERGIN_AUTH="{token}"')
Login to the service and see how to set the token environment variable.
Login to the service and see how to set the token environment variable.
Login to the service and see how to set the token environment variable .
def login(ctx):
    mc = ctx.obj["client"]
    if mc is not None:
        click.secho("Login successful!", fg="green")
        token = mc._auth_session["token"]
        click.secho(f'To set the MERGIN_AUTH variable run:\nexport MERGIN_AUTH="{token}"')
def login ( ctx ) : mc = ctx . obj [ "client" ] if mc is not None : click . secho ( "Login successful!" , fg = "green" ) token = mc . _auth_session [ "token" ] click . secho ( f'To set the MERGIN_AUTH variable run:\nexport MERGIN_AUTH="{token}"' )
Login to the service and see how to set the token environment variable.
Login to the service and see how to set the token environment variable .
"""Login to the service and see how to set the token environment variable."""
ctx