forked from zsh-users/zsh-completions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_gplaycli
43 lines (39 loc) · 3.35 KB
/
_gplaycli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#compdef gplaycli
# zsh completion for gplaycli - a program for interacting with the google playstore app repository for android
# Set GPLAYCLI_HOME to the directory containing your config files if different from the value below.
: ${GPLAYCLI_HOME=~/.local/etc/gplaycli}
local devicenames="((BRAVIA_ATV2\:'armeabi-v7a,armeabi' JP-1601\:'armeabi-v7a,armeabi' K013_1\:'x86,armeabi-v7a,armeabi'
Tab_8_4C\:'x86,armeabi-v7a' alien_jolla_bionic\:'armeabi-v7a,armeabi' angler\:'arm64-v8a,armeabi-v7a,armeabi'
aries\:'armeabi-v7a,armeabi' bacon\:'armeabi-v7a,armeabi' bbb100\:'arm64-v8a,armeabi-v7a,armeabi'
bravo\:'arm64-v8a,armeabi-v7a,armeabi' bullhead\:'arm64-v8a,armeabi-v7a,armeabi'
cloudbook\:'x86_64,x86,arm64-v8a,armeabi-v7a,armeabi' crackling\:'arm64-v8a,armeabi-v7a,armeabi'
cwv88s\:'armeabi-v7a,armeabi' eeepad\:'armeabi-v7a,armeabi' foster\:'arm64-v8a,armeabi-v7a,armeabi'
fp2\:'armeabi-v7a,armeabi' fresh\:'armeabi-v7a,armeabi' fs454\:'armeabi-v7a,armeabi'
gemini\:'arm64-v8a,armeabi-v7a,armeabi' gtp7510\:'armeabi-v7a,armeabi' gts3llte\:'arm64-v8a,armeabi-v7a,armeabi'
hammerhead\:'armeabi-v7a,armeabi' hero2lte\:'arm64-v8a,armeabi-v7a,armeabi' honami\:'armeabi-v7a,armeabi'
kenzo\:'arm64-v8a,armeabi-v7a,armeabi' m201\:'\:armeabi-v7a,armeabi' m3xx\:'armeabi-v7a,armeabi'
maguro\:'armeabi-v7a,armeabi' mako\:'armeabi-v7a,armeabi' manta\:'armeabi-v7a,armeabi'
nxtl09\:'arm64-v8a,armeabi-v7a,armeabi' oneplus3\:'arm64-v8a,armeabi-v7a,armeabi' pico\:'armeabi-v7a,armeabi'
sailfish\:'arm64-v8a,armeabi-v7a,armeabi' shamu\:'armeabi-v7a,armeabi' sloane\:'arm64-v8a,armeabi-v7a,armeabi'
t00q\:'x86,armeabi-v7a,armeabi' walleye\:'arm64-v8a,armeabi-v7a,armeabi' wetekplay2\:'armeabi-v7a,armeabi'))"
_arguments : {-h,--help}'[show this help message and exit]' \
{-V,--version}'[Print version number and exit]' \
{-v,--verbose}'[Be verbose]' \
{-s,--search}'[Search the given string in Google Play Store]:string:' \
'-d[Download the Apps that map given AppIDs]:*:appid:{_guard "[a-zA-Z0-9_.]#" "appid"}' \
{-y,--yes}'[Say yes to all prompted questions]' \
{-l,--list}'[List APKS in the given folder, with details]:dir:{_path_files -/}' \
{-P,--paid}'[Also search for paid apps]' \
{-av,--append-version}'[Append version string to APKs when downloading]' \
{-a,--additional-files}'[Enable the download of additional files]' \
{-F,--file}'[Load packages to download from file, one package per line]:file:{_files}' \
{-u,--update}'[Update all APKs in a given folder]:dir:{_path_files -/}' \
{-f,--folder}'[Where to put the downloaded Apks, only for -d command]:dir:{_path_files -/}' \
{-dc,--device-codename}"[The device codename to face]:device name:${devicenames}" \
{-t,--token}'[Instead of classical credentials, use the tokenize version]' \
{-tu,--token-url}'[Use the given tokendispenser URL to retrieve a token]:url:' \
{-ts,--token-str}'[Supply token string by yourself, need to also supply GSF_ID]:token:' \
{-g,--gsfid}'[Supply GSF_ID by yourself, need to also supply token string]:gsfid:' \
{-c,--config}'[Use a different config file than gplaycli.conf]:file:{_files -P ${GPLAYCLI_HOME%/}/ -W ${GPLAYCLI_HOME}}'\
{-p,--progress}'[Prompt a progress bar while downloading packages]' \
{-L,--log}'[Enable logging of apps status in separate logging files]'