Sha256: 0ba28220c2a1655ea268cfbf553e5e103cecdeb82053eb5e8a6cd3904f96604e

Contents?: true

Size: 1005 Bytes

Versions: 25

Compression:

Stored size: 1005 Bytes

Contents

#!/usr/bin/env bash

__alog_alog()
{
    __alog
}

_alog()
{
    local cur prev words cword
    local command='alog'
    local counter=1

    _get_comp_words_by_ref -n : cur prev words cword

    while [ "$counter" -lt "$cword" ]; do
        case "${words[$counter]}" in
            -*)
                break
                ;;
            *)
                command="${words[$counter]}"
                break
                ;;
        esac
        (( counter++ ))
    done

    local completions_func=__alog_${command//-/_}
    $completions_func
}

__alog() {
    local options="
        --verbose
        --no-verbose
        --debug
        --no-debug
        --silent
        --no-silent
        --color
        --no-color
        --progress
        --no-progress
        --since
        --diff
        --no-diff
    "

    case "$cur" in
        -*)
            COMPREPLY=($(compgen -W "$options" -- ${cur}))
            ;;
        *)
            
            ;;
    esac
}


complete -F _alog alog

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
autoproj-2.17.0 shell/completion/alog_bash
autoproj-2.16.0 shell/completion/alog_bash
autoproj-2.15.3 shell/completion/alog_bash
autoproj-2.15.2 shell/completion/alog_bash
autoproj-2.15.1 shell/completion/alog_bash
autoproj-2.15.0 shell/completion/alog_bash
autoproj-2.14.0 shell/completion/alog_bash
autoproj-2.13.0 shell/completion/alog_bash
autoproj-2.12.1 shell/completion/alog_bash
autoproj-2.12.0 shell/completion/alog_bash
autoproj-2.11.0 shell/completion/alog_bash
autoproj-2.10.2 shell/completion/alog_bash
autoproj-2.10.1 shell/completion/alog_bash
autoproj-2.10.0 shell/completion/alog_bash
autoproj-2.9.0 shell/completion/alog_bash
autoproj-2.8.8 shell/completion/alog_bash
autoproj-2.8.7 shell/completion/alog_bash
autoproj-2.8.6 shell/completion/alog_bash
autoproj-2.8.5 shell/completion/alog_bash
autoproj-2.8.5.b1 shell/completion/alog_bash