#23 github: complete 'issues' command

This commit is contained in:
Julien Nicoulaud 2011-09-02 15:11:17 +02:00
parent 335ff282ab
commit d1c1be3af5
1 changed files with 15 additions and 2 deletions

17
_github
View File

@ -107,8 +107,21 @@ _github() {
&& ret=0
;;
(issues)
# TODO Not implemented
_message "${words[1]} command argument" && ret=0
_arguments \
'1:cmd:->cmds' \
'2:: :_github_users' \
'--after[only show issues updated after a certain date]:date' \
'--label[only show issues with a certain label]:label' \
&& ret=0
case "$state" in
(cmds)
local statuses; statuses=(
'open:show open issues'
'closed:show closed issues'
)
_describe -t statuses 'status' statuses && ret=0
;;
esac
;;
(network)
# TODO Not implemented