update(context, id, etag, name, password, email, fullname, team_id,
              active)

    Update a user.

    >>> dcictl user-update [OPTIONS]

    :param string id: ID of the user to update [required]
    :param string etag: Entity tag of the user resource [required]
    :param string name: Name of the user
    :param string password: Password of the user
    :param string email: Email of the user
    :param string fullname: Full name of the user
    :param boolean active: Set the user in the active state

def update(context, id, etag, name, password, email, fullname,
           team_id, active):
    """update(context, id, etag, name, password, email, fullname, team_id,
              active)

    Update a user.

    >>> dcictl user-update [OPTIONS]

    :param string id: ID of the user to update [required]
    :param string etag: Entity tag of the user resource [required]
    :param string name: Name of the user
    :param string password: Password of the user
    :param string email: Email of the user
    :param string fullname: Full name of the user
    :param boolean active: Set the user in the active state
    """

    result = user.update(context, id=id, etag=etag, name=name,
                         password=password, team_id=team_id,
                         state=utils.active_string(active),
                         email=email, fullname=fullname)

    utils.format_output(result, context.format)