OSDN Git Service

Script-compatible output for list avds and list targets.
authorRaphael Moll <ralf@android.com>
Tue, 26 Apr 2011 19:07:17 +0000 (12:07 -0700)
committerRaphael Moll <ralf@android.com>
Tue, 26 Apr 2011 19:54:17 +0000 (12:54 -0700)
commitae2bae291136f0e24ab4721faddb89825ad6968b
tree06d07119dcb8550cc74de64d47404d7ee2fff6cd
parentc0e13dceb905f55092f89ab23831e6021209c8ec
Script-compatible output for list avds and list targets.

This adds the following options to the "android"
command line to make it easier to use the outputs
from scripts:

$ android list avds    --compact --null
$ android list targets --compact --null

The short version is '-c -0'.

--compact or -c outputs *justs* the AVD names or the
target identifiers (usable for --target arguments).
with no other information, one per line.

--null or -0 switches EOL from \n to \0, which allows
scripts to process target names with spaces using
xargs -0 or similar.

Change-Id: I18e6ee6b431ed69913a6df37ce34e17ecc721035
sdkmanager/app/src/com/android/sdkmanager/Main.java
sdkmanager/app/src/com/android/sdkmanager/SdkCommandLine.java