Sha256: 7e847690504438ed9be37177a2619cab35c5cda02041ba99e194a6e599c59bf0

Contents?: true

Size: 1.33 KB

Versions: 14

Compression:

Stored size: 1.33 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
        --not
    "

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


complete -F _amake amake

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
autoproj-2.17.0 shell/completion/amake_bash
autoproj-2.16.0 shell/completion/amake_bash
autoproj-2.15.3 shell/completion/amake_bash
autoproj-2.15.2 shell/completion/amake_bash
autoproj-2.15.1 shell/completion/amake_bash
autoproj-2.15.0 shell/completion/amake_bash
autoproj-2.14.0 shell/completion/amake_bash
autoproj-2.13.0 shell/completion/amake_bash
autoproj-2.12.1 shell/completion/amake_bash
autoproj-2.12.0 shell/completion/amake_bash
autoproj-2.11.0 shell/completion/amake_bash
autoproj-2.10.2 shell/completion/amake_bash
autoproj-2.10.1 shell/completion/amake_bash
autoproj-2.10.0 shell/completion/amake_bash