1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 06:46:13 +01:00

add completion support for osc search

This commit is contained in:
Dr. Werner Fink 2009-07-01 15:51:34 +00:00
parent d0af05c108
commit eac23410b5

9
dist/osc.complete vendored
View File

@ -330,6 +330,15 @@ help)
fi
((count == 2)) && builtin compgen -W "$(builtin echo ${osccmds[@]})" -- "${cmdline[2]}"
;;
search)
if ((count == 1)) ; then
builtin compgen -W 'search' -- "${cmdline[1]}"
else
oscsearch="--help --csv -i --involved -v --verbose --description --title \
--project --package -e --exact --repos-baseurl"
builtin compgen -W "${oscsearch}" -- "${cmdline[$count]}"
fi
;;
*)
((count == 1)) && builtin compgen -W "$(builtin echo ${osccmds[@]})" -- "${cmdline[1]}"
esac