mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-05 23:48:48 +08:00
#40 adb: Extract log tags from 'adb logcat -d'
This commit is contained in:
1 parent
9ab770f7fc
commit
64c1d2f026
1 file changed
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user