completion: fix update and add force-update support

This commit is contained in:
Jason M. Wood 2017-06-14 09:27:51 -06:00
parent 7cea2a865b
commit 55b82d74d8

View File

@ -12,7 +12,7 @@ _mscs() {
OPTS=" OPTS="
backup console create delete disable enable force-restart force-stop list backup console create delete disable enable force-restart force-stop list
list-backups logrotate map new overviewer remove restart restore-backup list-backups logrotate map new overviewer remove restart restore-backup
broadcast send show start status stop sync update watch usage broadcast send show start status stop sync update force-update watch usage
" "
LIST_OPTS="enabled disabled running stopped" LIST_OPTS="enabled disabled running stopped"
@ -30,7 +30,7 @@ _mscs() {
COMPREPLY=($(compgen -W "$WORLDS" -- ${COMP_WORDS[COMP_CWORD]})) COMPREPLY=($(compgen -W "$WORLDS" -- ${COMP_WORDS[COMP_CWORD]}))
;; ;;
disable|sync|send|watch|logrotate|backup|map|overviewer|\ disable|sync|send|watch|logrotate|backup|map|overviewer|\
list-backups|restore-backup) list-backups|restore-backup|update|force-update)
WORLDS=$(list_worlds enabled) WORLDS=$(list_worlds enabled)
COMPREPLY=($(compgen -W "$WORLDS" -- ${COMP_WORDS[COMP_CWORD]})) COMPREPLY=($(compgen -W "$WORLDS" -- ${COMP_WORDS[COMP_CWORD]}))
;; ;;