#23 github: complete users using _users too
This commit is contained in:
parent
85451a7a4c
commit
022f30b068
9
_github
9
_github
|
@ -226,8 +226,15 @@ _github() {
|
||||||
|
|
||||||
(( $+functions[_github_users] )) ||
|
(( $+functions[_github_users] )) ||
|
||||||
_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)"})
|
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] )) ||
|
(( $+functions[_github_repos] )) ||
|
||||||
|
|
Loading…
Reference in New Issue