Skip to content

Commit

Permalink
Sort options by-name + add 3 alternative keywords for 3 options
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Aug 24, 2024
1 parent 073c405 commit 2d2edfc
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ function _3rd_party_lists() {
################################################################################

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

case "$1" in
'-a'|'about'|\
'-f'|'files'|\
'-l'|'list'|\
'-q'|'query')
'about'|'-a'|\
'files'|'-f'|\
'list'|'-l'|\
'query'|'-q')
MODULE="database.am"
_use_module "$@"
;;
Expand All @@ -869,41 +869,37 @@ case "$1" in
MODULE="management.am"
_use_module "$@"
;;
'-h'|'help')
MODULE="help.am"
_if_appman_mode_enabled
_use_module "$@"
;;
'-C'|'--config'|\
'-H'|'--home'|\
'--sandbox'|\
'config'|'-C'|'--config'|\
'home'|'-H'|'--home'|\
'sandbox'|'--sandbox'|\
'--disable-sandbox')
MODULE="sandboxes.am"
_use_module "$@"
;;
'-d'|'download'|\
'-i'|'install'|\
'-e'|'extra')
'download'|'-d'|\
'extra'|'-e'|\
'install'|'-i')
MODULE="install.am"
_online_check
_if_appman_mode_enabled
_use_module "$@"
;;
'-t'|'template')
MODULE="template.am"
_online_check
'help'|'-h')
MODULE="help.am"
_if_appman_mode_enabled
_use_module "$@"
;;
'neodb'|\
'newrepo')
'neodb'|'newrepo')
MODULE="devtools.am"
_online_check
_use_module "$@"
;;
# INBUILT OPTIONS
'apikey')
_use_apikey "$@"
'template'|'-t')
MODULE="template.am"
_online_check
_use_module "$@"
;;
# INBUILT OPTIONS
'--devmode-disable'|'--devmode-enable')
_use_beta_tester "$@"
;;
Expand All @@ -913,7 +909,10 @@ case "$1" in
'--system')
_back_to_am
;;
'--user'|'appman')
'apikey')
_use_apikey "$@"
;;
'appman'|'--user')
_use_appman
;;
'clean'|'-c')
Expand Down

0 comments on commit 2d2edfc

Please sign in to comment.