#23 github: complete users using _users too

This commit is contained in:
Julien Nicoulaud 2011-09-26 23:23:34 +02:00
parent 85451a7a4c
commit 022f30b068
1 changed files with 8 additions and 1 deletions

View File

@ -226,8 +226,15 @@ _github() {
(( $+functions[_github_users] )) ||
_github_users() {
_alternative \
'users:user:_users' \
'github-network-users:github network user:_github_network_users'
}
(( $+functions[_github_network_users] )) ||
_github_network_users() {
local users; users=(${(f)"$(_call_program users $service network list 2>/dev/null)"})
_describe -t users 'user' users "$@"
_describe -t github-network-users 'github network user' users "$@"
}
(( $+functions[_github_repos] )) ||