#40 adb: Extract log tags from 'adb logcat -d'

This commit is contained in:
Julien Nicoulaud 2011-08-21 19:38:13 +02:00
parent 9ab770f7fc
commit 64c1d2f026
1 changed files with 2 additions and 1 deletions

3
_adb
View File

@ -357,7 +357,8 @@ _adb_logcat_filter_specs() {
)
_describe -t log-priorities 'log priority' priorities "$@" && ret=0
else
_message -e log-tags 'log tag' && ret=0
local tags; tags=(${(u)${${(f)"$(_call_program tags $service $adb_args logcat -d)"}%%[[:space:]]#\(*}##*\/})
_describe -t log-tags 'log tag' tags -qS: "$@" && ret=0
fi
return ret
}