yandex-tank/data/yandex-tank.completion
Alexey Lavrenuke 60b557a2a0 * remove debian files (should be autogenerated)
* move different files to data
* move scripts to scripts
2015-02-05 15:29:20 +03:00

26 lines
812 B
Plaintext
Executable File

have yandex-tank &&
_yandex_tank()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
if [[ ${cur} == -* ]] ; then
opts=`yandex-tank --bash-switches-list`
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
if [[ ${prev} == -o ]] ; then
opts=`yandex-tank --bash-options-prev="${prev}" --bash-options-cur="${cur}"`
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
COMPREPLY=()
} &&
complete -o default -F _yandex_tank yandex-tank &&
complete -o default -F _yandex_tank yandex-tank-jmeter &&
complete -o default -F _yandex_tank yandex-tank-udp &&
complete -o default -F _yandex_tank yandex-tank-bfg &&
complete -o default -F _yandex_tank yandex-tank-elliptics