colored 1.5.2

The most simple way to add colors in your terminal
Documentation
_git-journal() {
    local i cur prev opts cmds
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    cmd=""
    opts=""

    for i in ${COMP_WORDS[@]}
    do
        case "${i}" in
            git-journal)
                cmd="git-journal"
                ;;
            
            help)
                cmd+="__help"
                ;;
            p)
                cmd+="__p"
                ;;
            prepare)
                cmd+="__prepare"
                ;;
            s)
                cmd+="__s"
                ;;
            setup)
                cmd+="__setup"
                ;;
            v)
                cmd+="__v"
                ;;
            verify)
                cmd+="__verify"
                ;;
            *)
                ;;
        esac
    done

    case "${cmd}" in
        git-journal)
            opts=" -a -g -s -u -h -V -p -n -e -t -o  --all --generate --short --skip-unreleased --help --version --path --tags-count --template --output  <revision range>  prepare setup verify help  p  s  v"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                --path)
                    COMPREPLY=("<PATH>")
                    return 0
                    ;;
                    -p)
                    COMPREPLY=("<PATH>")
                    return 0
                    ;;
                --tags-count)
                    COMPREPLY=("<number of tags>")
                    return 0
                    ;;
                    -n)
                    COMPREPLY=("<number of tags>")
                    return 0
                    ;;
                    -e)
                    COMPREPLY=("<exclude git tag pattern>")
                    return 0
                    ;;
                --template)
                    COMPREPLY=("<template>")
                    return 0
                    ;;
                    -t)
                    COMPREPLY=("<template>")
                    return 0
                    ;;
                --output)
                    COMPREPLY=("<output>")
                    return 0
                    ;;
                    -o)
                    COMPREPLY=("<output>")
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
        
        git__journal__help)
            opts=" -h -V  --help --version  "
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
        git__journal__p)
            opts=" -h -V  --help --version  <COMMIT_MSG> <TYPE> "
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
        git__journal__prepare)
            opts=" -h -V  --help --version  <COMMIT_MSG> <TYPE> "
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
        git__journal__s)
            opts=" -h -V  --help --version  "
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
        git__journal__setup)
            opts=" -h -V  --help --version  "
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
        git__journal__v)
            opts=" -h -V  --help --version  <COMMIT_MSG> "
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
        git__journal__verify)
            opts=" -h -V  --help --version  <COMMIT_MSG> "
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
            fi
            case "${prev}" in
                
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            return 0
            ;;
    esac
}

complete -F _git-journal -o bashdefault -o default git-journal