From 335ff282ab7099b57b9ea76b4a6a5d32dd26f42d Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Fri, 2 Sep 2011 15:03:46 +0200 Subject: [PATCH] #23 github: complete 'ignore' command --- _github | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/_github b/_github index ee02bc2..ee7d902 100644 --- a/_github +++ b/_github @@ -101,13 +101,10 @@ _github() { '1: :_github_user_slash_repos' \ && ret=0 ;; - (home) - # TODO Not implemented - _message "${words[1]} command argument" && ret=0 - ;; (ignore) - # TODO Not implemented - _message "${words[1]} command argument" && ret=0 + _arguments \ + '1: :_github_network_commits' \ + && ret=0 ;; (issues) # TODO Not implemented @@ -174,4 +171,10 @@ _github_user_slash_repos() { return ret } +(( $+functions[_github_network_commits] )) || +_github_network_commits() { + # TODO Not implemented (use 'github network commits' output) + _message -e commits 'commit' +} + _github "$@"