jira: add completion

This commit is contained in:
Andrew Janke 2015-08-18 05:05:54 -04:00
commit dc42e8d488
2 changed files with 25 additions and 4 deletions

21
plugins/jira/_jira Normal file
View file

@ -0,0 +1,21 @@
#compdef jira
#autoload
local -a _1st_arguments
_1st_arguments=(
'new:create a new issue'
'dashboard:open the dashboard'
'reported:search for issues reported by a user'
'assigned:search for issues assigned to a user'
)
_arguments -C \
':command:->command' \
'*::options:->options'
case $state in
(command)
_describe -t commands "jira subcommand" _1st_arguments
return
;;
esac