From a71b924b83f62611a4e13e4628ec8f6eb8b2f94d Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Tue, 17 Mar 2020 14:26:56 -0700 Subject: [PATCH] Add more options for Android emulator completion This adds several options to _emulator: * -list-avds * -writable-system * -cores * -accel * -no-accel * -help entries for each of the above Issue #41 Test: loaded this plugin and tested tab completion on these options, messages seem fine --- src/_emulator | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/_emulator b/src/_emulator index 0ca397a..813dc2e 100644 --- a/src/_emulator +++ b/src/_emulator @@ -39,9 +39,11 @@ _arguments \ '(- : *)-help-sdk-images[about disk images when using the SDK]' \ '(- : *)-help-build-images[about disk images when building Android]' \ '(- : *)-help-all[prints all help content]' \ - '(- : *)-help-'{version,sysdir,system,image,datadir,kernel,ramdisk,initdata,data,partition-size,cache,no-cache,nocache,sdcard,snapstorage,no-snapstorage,snapshot,no-snapshot,no-snapshot-save,no-snapshot-load,snapshot-list,no-snapshot-update-time,wipe-data,avd,skindir,skin,noskin,no-skin,memory,netspeed,netdelay,netfast,trace,show-kernel,shell,no-jni,nojni,logcat,noaudio,no-audio,audio,raw-keys,radio,port,ports,onion,onion-alpha,onion-rotation,scale,dpi-device,http-proxy,timezone,dns-server,cpu-delay,no-boot-anim,no-window,report-console,gps,keyset,shell-serial,tcpdump,bootchart,charmap,prop,shared-net-id,nand-limits,memcheck,qemu,verbose}'[print option-specific help]' \ + '(- : *)-help-'{version,list-avds,sysdir,system,writable-system,image,datadir,kernel,ramdisk,initdata,data,partition-size,cache,no-cache,nocache,sdcard,snapstorage,no-snapstorage,snapshot,no-snapshot,no-snapshot-save,no-snapshot-load,snapshot-list,no-snapshot-update-time,wipe-data,avd,skindir,skin,noskin,no-skin,memory,cores,accel,no-accel,netspeed,netdelay,netfast,trace,show-kernel,shell,no-jni,nojni,logcat,noaudio,no-audio,audio,raw-keys,radio,port,ports,onion,onion-alpha,onion-rotation,scale,dpi-device,http-proxy,timezone,dns-server,cpu-delay,no-boot-anim,no-window,report-console,gps,keyset,shell-serial,tcpdump,bootchart,charmap,prop,shared-net-id,nand-limits,memcheck,qemu,verbose}'[print option-specific help]' \ + '-list-avds[list available AVDs]' \ '-sysdir[search for system disk images in the directory]: :_files -/' \ '(-system -image)'{-system,-image}'[read initial system image from the file]: :_files -g "*.img"' \ + '-writable-system[make system image writable after '\''adb remount'\'']' \ '-datadir[write user data into the directory]: :_files -/' \ '-kernel[use specific emulated kernel]: :_files' \ '-ramdisk[ramdisk image (default /ramdisk.img]: :_files -g "*.img"' \ @@ -65,6 +67,9 @@ _arguments \ '-skin[select a given skin]' \ '(-noskin -no-skin)'{-noskin,-no-skin}'[don'\''t use any emulator skin]' \ '-memory[physical RAM size in MBs]:size (in MBs)' \ + '-cores[Set number of CPU cores to emulator]:number' \ + '(-no-accel)-accel[Configure emulation acceleration]:mode' \ + '(-accel)-no-accel[Same as '\''-accel off'\'']' \ '-netspeed[maximum network download/upload speeds]:speed' \ '-netdelay[network latency emulation]:delay' \ '-netfast[disable network shaping]' \