/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.14.0
completions/avctrl
20 строк
476 B
Koichi Murase
docs(api-and-naming): use REPLY for return variable instead of ret (#987)
24 дек 2023, 17:52
Не верифицирован
24 дек 2023, 17:52
7fba87c
Код
Авторство
О чём код?
# avctrl completion -*- shell-script -*- _comp_cmd_avctrl() { local cur prev words cword comp_args _comp_initialize -- "$@" || return if [[ $cur == -* ]]; then _comp_compgen -- -W '--help --quiet' else local REPLY _comp_count_args if ((REPLY == 1)); then _comp_compgen -- -W 'discover switch' fi fi } && complete -F _comp_cmd_avctrl avctrl # ex: filetype=sh