Exemplo n.º 1
0
def import_users(ctx, admin_access_token, file_):
    """Import users from file."""
    try:
        _import_users(admin_access_token, file_)
        click.secho('Users successfully imported.', fg='green')
    except Exception as e:
        click.secho(
            'Something went wrong while importing users:\n{}'.format(e),
            fg='red', err=True)
Exemplo n.º 2
0
def import_users(ctx, admin_access_token, file_):
    """Import users from file."""
    try:
        _import_users(admin_access_token, file_)
        click.secho("Users successfully imported.", fg="green")
    except Exception as e:
        click.secho(
            "Something went wrong while importing users:\n{}".format(e),
            fg="red",
            err=True,
        )