Update bash completion for fedabipkgdiff

* bash-completion/fedabipkgdiff: New bash completion file.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Chenxiong Qi 2016-06-29 12:01:29 +08:00 committed by Dodji Seketeli
parent 3b52398421
commit e4e53aa763

View File

@ -0,0 +1,28 @@
_fedabipkgdiff_module()
{
local cur OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
case $cur in
-*)
OPTS=" --dry-run
--debug
--traceback
--server
--topdir
--from
--to
--all-subpackages
--dso-only
--no-default-suppression
--no-devel-pkg"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;
esac
local IFS=$'\n'
compopt -o filenames
COMPREPLY=( $(compgen -f -- $cur) )
return 0
}
complete -F _fedabipkgdiff_module fedabipkgdiff