fixed indentation in general

This commit is contained in:
luolimao 2012-09-02 02:26:59 -04:00
parent a89cb91318
commit b6f3d51dc7
1 changed files with 17 additions and 17 deletions

View File

@ -25,39 +25,39 @@ _yaourt_action_query() {
# "$_yaourt_opts_common[@]" \ # "$_yaourt_opts_common[@]" \
# "$_yaourt_opts_query_actions[@]" \ # "$_yaourt_opts_query_actions[@]" \
# "$_yaourt_opts_query_modifiers[@]" # "$_yaourt_opts_query_modifiers[@]"
case $state in case $state in
query_file) query_file)
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:package file:_files -g "*.pkg.tar.*"' '*:package file:_files -g "*.pkg.tar.*"'
;; ;;
query_group) query_group)
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:groups:_yaourt_completions_installed_groups' '*:groups:_yaourt_completions_installed_groups'
;; ;;
query_owner) query_owner)
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:file:_files' '*:file:_files'
;; ;;
query_search) query_search)
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:search text: ' '*:search text: '
;; ;;
*) *)
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_actions[@]" \ "$_yaourt_opts_query_actions[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:package:_yaourt_completions_installed_packages' '*:package:_yaourt_completions_installed_packages'
;; ;;
esac esac
} }
@ -77,7 +77,7 @@ _yaourt_action_sync() {
# "$_yaourt_opts_common[@]" \ # "$_yaourt_opts_common[@]" \
# "$_yaourt_opts_sync_actions[@]" #\ # "$_yaourt_opts_sync_actions[@]" #\
# #"$_yaourt_opts_sync_modifiers[@]" # #"$_yaourt_opts_sync_modifiers[@]"
case $state in case $state in
sync_clean) sync_clean)
_arguments -s : \ _arguments -s : \
@ -90,20 +90,20 @@ _yaourt_action_sync() {
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_sync_modifiers[@]" \ "$_yaourt_opts_sync_modifiers[@]" \
'*:package group:_yaourt_completions_all_groups' '*:package group:_yaourt_completions_all_groups'
;; ;;
sync_search) sync_search)
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_sync_modifiers[@]" \ "$_yaourt_opts_sync_modifiers[@]" \
'*:search text: ' '*:search text: '
;; ;;
*) *)
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_sync_modifiers[@]" \ "$_yaourt_opts_sync_modifiers[@]" \
'*:package:_yaourt_completions_all_packages' '*:package:_yaourt_completions_all_packages'
;; ;;
esac esac
} }
# handles --upgrade subcommand # handles --upgrade subcommand
@ -260,8 +260,8 @@ _yaourt() {
'-m[List installed packages not found in sync db(s)]' '-m[List installed packages not found in sync db(s)]'
'-t[List packages not required by any package]' '-t[List packages not required by any package]'
'-u[List packages that can be upgraded]' '-u[List packages that can be upgraded]'
'--aur[Install packages from aur, even if they are in community, or, with the -u option, update packages installed from aur]' '--aur[Install packages from aur, even if they are in community, or, with the -u option, update packages installed from aur]'
'--devel[Used with -u updates all cvs/svn/git/hg/bzr packages]' '--devel[Used with -u updates all cvs/svn/git/hg/bzr packages]'
) )
# options for passing to _arguments: options for --remove command # options for passing to _arguments: options for --remove command
@ -309,19 +309,19 @@ _yaourt() {
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:groups:_yaourt_completions_installed_groups' '*:groups:_yaourt_completions_installed_groups'
;; ;;
-Q*o*) # file -Q*o*) # file
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:package file:_files' '*:package file:_files'
;; ;;
-Q*p*) # file *.pkg.tar.* -Q*p*) # file *.pkg.tar.*
_arguments -s : \ _arguments -s : \
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_query_modifiers[@]" \ "$_yaourt_opts_query_modifiers[@]" \
'*:package file:_files -g "*.pkg.tar.*"' '*:package file:_files -g "*.pkg.tar.*"'
;; ;;
-Q*) _yaourt_action_query ;; -Q*) _yaourt_action_query ;;
-R*) _yaourt_action_remove ;; -R*) _yaourt_action_remove ;;
-S*c*) # no completion -S*c*) # no completion
@ -338,7 +338,7 @@ _yaourt() {
"$_yaourt_opts_common[@]" \ "$_yaourt_opts_common[@]" \
"$_yaourt_opts_sync_modifiers[@]" \ "$_yaourt_opts_sync_modifiers[@]" \
'*:package group:_yaourt_completions_all_groups' '*:package group:_yaourt_completions_all_groups'
;; ;;
-S*) _yaourt_action_sync ;; -S*) _yaourt_action_sync ;;
-U*) _yaourt_action_upgrade ;; -U*) _yaourt_action_upgrade ;;
-V*) _yaourt_action_version ;; -V*) _yaourt_action_version ;;