1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-07 16:00:41 +01:00

jira: add completion

This commit is contained in:
Andrew Janke
2015-08-18 05:05:54 -04:00
parent 7cf892ecaa
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