2005-11-28 20:26:32 +00:00
|
|
|
# bash completion for repomanage -*- sh -*-
|
|
|
|
|
|
|
|
_repomanage()
|
|
|
|
{
|
|
|
|
local cur prev
|
|
|
|
|
|
|
|
COMPREPLY=()
|
2009-01-06 18:44:43 +00:00
|
|
|
cur=`_get_cword`
|
2005-11-28 20:26:32 +00:00
|
|
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
|
|
|
|
|
|
|
case $prev in
|
|
|
|
-@(h|-help|k|-keep))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ "$cur" == -* ]] ; then
|
|
|
|
COMPREPLY=( $( compgen -W '-o --old -n --new -s --space -k --keep \
|
|
|
|
-c --nocheck -h --help' -- $cur ) )
|
|
|
|
else
|
|
|
|
_filedir -d
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
complete -F _repomanage repomanage
|