From 85451a7a4c1ff36a2b84b3ffb17233b05d4738a2 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Mon, 26 Sep 2011 23:11:17 +0200 Subject: [PATCH] #23 github: complete networks commits --- _github | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_github b/_github index a3a16bc..796fef2 100644 --- a/_github +++ b/_github @@ -226,7 +226,7 @@ _github() { (( $+functions[_github_users] )) || _github_users() { - local users; users=(${(f)"$(_call_program users $service network list)"}) + local users; users=(${(f)"$(_call_program users $service network list 2>/dev/null)"}) _describe -t users 'user' users "$@" } @@ -256,8 +256,8 @@ _github_user_slash_repos() { (( $+functions[_github_network_commits] )) || _github_network_commits() { - # TODO Not implemented (use 'github network commits' output) - _message -e commits 'commit' + local commits; commits=(${${(f)"$(_call_program commits $service network commits 2>/dev/null)"}%%[[:blank:]]*}) + _describe -t commits 'commit' commits "$@" } _github "$@"