mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added bash completion for global stop/restart now options.
This commit is contained in:
parent
2028c06a05
commit
f7a94bc6ef
@ -10,10 +10,17 @@ _msm() {
|
|||||||
if [[ $COMP_CWORD -gt 1 ]]; then
|
if [[ $COMP_CWORD -gt 1 ]]; then
|
||||||
case "$base" in
|
case "$base" in
|
||||||
start)
|
start)
|
||||||
|
# Do nothing there is no more
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
|
if [[ $COMP_CWORD == 2 ]]; then
|
||||||
|
options="now"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
|
if [[ $COMP_CWORD == 2 ]]; then
|
||||||
|
options="now"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
server)
|
server)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user