import click


def format(text):
    """Format all OK,FAIL,PR,REPO words
    
    :param text: word
    :type text: string
    :raises Exception: Unknown text
    :return: formated click style text
    :rtype: string
    """

    text = text.lower()
    if text == "ok":
        return click.style('OK', fg='green', bold=True)
    elif text == "fail":
        return click.style('FAIL', fg='red', bold=True)
    elif text == "pr":
        return click.style('PR', bold=True)
    elif text == "repo":
        return click.style('REPO', bold=True)
    else:
        raise Exception("Unkown text")