_jira
648 bytes
1#compdef jira
2#autoload
3
4local -a _1st_arguments
5_1st_arguments=(
6 'new:create a new issue'
7 'mine:open my issues'
8 'project:open the project'
9 'dashboard:open the dashboard'
10 'tempo:open the tempo'
11 'reported:search for issues reported by a user'
12 'assigned:search for issues assigned to a user'
13 'branch:open the issue named after the git branch of the current directory'
14 'dumpconfig:display effective jira configuration'
15 'help:print usage help to stdout'
16)
17
18_arguments -C \
19 ':command:->command' \
20 '*::options:->options'
21
22case $state in
23 (command)
24 _describe -t commands "jira subcommand" _1st_arguments
25 return
26 ;;
27esac