summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_adb
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-12-24 04:40:22 +0100
committerAxel Beckert <abe@deuxchevaux.org>2018-12-24 04:40:22 +0100
commitbf8b7f713a5b04a191f4596fb86bbbfca0a855ce (patch)
treeb647a8dc990c8c845b8a8eca7bf92fbbf17e1fb5 /Completion/Unix/Command/_adb
parent06946d431a4426c6e5dffec1d7edb17c1dbd467c (diff)
parent9dbde9e9c7d22ee0d301e4a2fecf97906d1ddce9 (diff)
downloadzsh-bf8b7f713a5b04a191f4596fb86bbbfca0a855ce.tar.gz
zsh-bf8b7f713a5b04a191f4596fb86bbbfca0a855ce.zip
New upstream release candidate 5.6.2-test-2
Merge branch 'upstream' at 'zsh-5.6.2-test-2' into branch debian
Diffstat (limited to 'Completion/Unix/Command/_adb')
-rw-r--r--Completion/Unix/Command/_adb17
1 files changed, 16 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_adb b/Completion/Unix/Command/_adb
index 776a03cbc..75a447dfc 100644
--- a/Completion/Unix/Command/_adb
+++ b/Completion/Unix/Command/_adb
@@ -112,6 +112,9 @@ _adb_dispatch_command () {
(*:adb-shell:)
(( $+functions[_adb_dispatch_shell] )) && _adb_dispatch_shell
;;
+ (*:adb-backup:)
+ (( $+functions[_adb_dispatch_backup] )) && _adb_dispatch_backup
+ ;;
(*:adb-connect:|*:adb-disconnect:)
(( $+functions[_adb_dispatch_connection_handling] )) && _adb_dispatch_connection_handling
;;
@@ -191,6 +194,18 @@ _adb_dispatch_shell () {
esac
}
+(( $+functions[_adb_dispatch_backup] )) ||
+_adb_dispatch_backup() {
+ _arguments \
+ '-f[specify backup file]:backup file:_files' \
+ '-apk[backup .apk files]' '!(-apk)-noapk' \
+ '-obb[backup .obb files]' '!(-obb)-noobb' \
+ '-shared[backup shared storage]' '!(-shared)-noshared' \
+ '-all[backup all installed apps]' \
+ '-nosystem[include system apps when backing up all apps]' '!(-nosystem)-system' \
+ '*:package name:_adb_installed_packages'
+}
+
(( $+functions[_adb_pm_list] )) ||
_adb_pm_list () {
case ${words[4]} in
@@ -298,7 +313,7 @@ _adb_package_manager_handler () {
(getInstallLocation)
;;
(*)
- _wanted pm_argument expl 'pm argument' compadd list path install unistall enable disable setInstallLocation getInstallLocation
+ _wanted pm_argument expl 'pm argument' compadd list path install uninstall enable disable setInstallLocation getInstallLocation
;;
esac
}