mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added bash completion for "jargroup" commands.
This commit is contained in:
parent
5dfbdd6900
commit
2801318546
@ -30,6 +30,14 @@ _msm() {
|
|||||||
jargroup)
|
jargroup)
|
||||||
if [[ $COMP_CWORD == 2 ]]; then
|
if [[ $COMP_CWORD == 2 ]]; then
|
||||||
options="list create delete rename changeurl getlatest"
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user