Sha256: a7d9c0d2d0ab1607e085262fda9a1e3a6fd82aac1190e3acaa141cdaa826d9bb

Contents?: true

Size: 1.31 KB

Versions: 11

Compression:

Stored size: 1.31 KB

Contents

#!/usr/bin/env bash

__amake_amake()
{
    __amake
}

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

__amake() {
    local options="
        --verbose
        --no-verbose
        --debug
        --no-debug
        --silent
        --no-silent
        --color
        --no-color
        --progress
        --no-progress
        --keep-going
        --no-keep-going
        -k
        --force
        --no-force
        --rebuild
        --no-rebuild
        --osdeps
        --no-osdeps
        --deps
        --no-deps
        --parallel
        -p
        --auto-exclude
        --no-auto-exclude
        --tool
        --no-tool
        --confirm
        --no-confirm
    "

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


complete -F _amake amake

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
autoproj-2.9.0 shell/completion/amake_bash
autoproj-2.8.8 shell/completion/amake_bash
autoproj-2.8.7 shell/completion/amake_bash
autoproj-2.8.6 shell/completion/amake_bash
autoproj-2.8.5 shell/completion/amake_bash
autoproj-2.8.5.b1 shell/completion/amake_bash
autoproj-2.8.4 shell/completion/amake_bash
autoproj-2.8.3 shell/completion/amake_bash
autoproj-2.8.2 shell/completion/amake_bash
autoproj-2.8.1 shell/completion/amake_bash
autoproj-2.8.0 shell/completion/amake_bash