Added bash completion for "jargroup" commands.

This commit is contained in:
Marcus Whybrow 2012-05-31 07:20:23 +01:00
parent 5dfbdd6900
commit 2801318546

View File

@ -30,6 +30,14 @@ _msm() {
jargroup)
if [[ $COMP_CWORD == 2 ]]; then
options="list create delete rename changeurl getlatest"
else
case ${COMP_WORDS[2]} in
delete|rename|changeurl|getlatest)
if [[ $COMP_CWORD == 3 ]]; then
options=$(ls -1 $JAR_STORAGE_PATH)
fi
;;
esac
fi
;;
*)