Skip to content

Commit 2d2edfc

Browse files
authored
Sort options by-name + add 3 alternative keywords for 3 options
1 parent 073c405 commit 2d2edfc

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

APP-MANAGER

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ function _3rd_party_lists() {
269269
################################################################################
270270

271271
# COMPLETION LIST
272-
available_options="about apikey backup clean downgrade download extra files install launcher \
273-
list lock neodb newrepo nolibfuse overwrite query remove sync template test unlock update \
272+
available_options="about apikey backup clean config downgrade download extra files home install launcher list \
273+
lock neodb newrepo nolibfuse overwrite query remove sandbox sync template test unlock update \
274274
--appimages --apps --byname --config --convert --debug --devmode-disable --devmode-enable \
275275
--force-latest --home --launcher --less --pkg --rollback --disable-sandbox --sandbox \
276276
--silent --system --user"
@@ -852,10 +852,10 @@ function _use_module() {
852852
echo "" && echo " Run the \"$AMCLI -h\" command to find out more" && exit 1
853853

854854
case "$1" in
855-
'-a'|'about'|\
856-
'-f'|'files'|\
857-
'-l'|'list'|\
858-
'-q'|'query')
855+
'about'|'-a'|\
856+
'files'|'-f'|\
857+
'list'|'-l'|\
858+
'query'|'-q')
859859
MODULE="database.am"
860860
_use_module "$@"
861861
;;
@@ -869,41 +869,37 @@ case "$1" in
869869
MODULE="management.am"
870870
_use_module "$@"
871871
;;
872-
'-h'|'help')
873-
MODULE="help.am"
874-
_if_appman_mode_enabled
875-
_use_module "$@"
876-
;;
877-
'-C'|'--config'|\
878-
'-H'|'--home'|\
879-
'--sandbox'|\
872+
'config'|'-C'|'--config'|\
873+
'home'|'-H'|'--home'|\
874+
'sandbox'|'--sandbox'|\
880875
'--disable-sandbox')
881876
MODULE="sandboxes.am"
882877
_use_module "$@"
883878
;;
884-
'-d'|'download'|\
885-
'-i'|'install'|\
886-
'-e'|'extra')
879+
'download'|'-d'|\
880+
'extra'|'-e'|\
881+
'install'|'-i')
887882
MODULE="install.am"
888883
_online_check
889884
_if_appman_mode_enabled
890885
_use_module "$@"
891886
;;
892-
'-t'|'template')
893-
MODULE="template.am"
894-
_online_check
887+
'help'|'-h')
888+
MODULE="help.am"
889+
_if_appman_mode_enabled
895890
_use_module "$@"
896891
;;
897-
'neodb'|\
898-
'newrepo')
892+
'neodb'|'newrepo')
899893
MODULE="devtools.am"
900894
_online_check
901895
_use_module "$@"
902896
;;
903-
# INBUILT OPTIONS
904-
'apikey')
905-
_use_apikey "$@"
897+
'template'|'-t')
898+
MODULE="template.am"
899+
_online_check
900+
_use_module "$@"
906901
;;
902+
# INBUILT OPTIONS
907903
'--devmode-disable'|'--devmode-enable')
908904
_use_beta_tester "$@"
909905
;;
@@ -913,7 +909,10 @@ case "$1" in
913909
'--system')
914910
_back_to_am
915911
;;
916-
'--user'|'appman')
912+
'apikey')
913+
_use_apikey "$@"
914+
;;
915+
'appman'|'--user')
917916
_use_appman
918917
;;
919918
'clean'|'-c')

0 commit comments

Comments
 (0)