Sha256: c633aa0acd065e2530ffcc1cace351098bc33c0ced57de5da03ef0f00dd56c98

Contents?: true

Size: 1.14 KB

Versions: 25

Compression:

Stored size: 1.14 KB

Contents

#!/usr/bin/env bash

__alocate_alocate()
{
    __alocate
}

_alocate()
{
    local cur prev words cword
    local command='alocate'
    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=__alocate_${command//-/_}
    $completions_func
}

__alocate() {
    local options="
        --verbose
        --no-verbose
        --debug
        --no-debug
        --silent
        --no-silent
        --color
        --no-color
        --progress
        --no-progress
        --cache
        --no-cache
        --prefix
        --no-prefix
        -p
        --build
        --no-build
        -b
        --log
        -l
    "

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


complete -F _alocate alocate

Version data entries

25 entries across 25 versions & 1 rubygems

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