_jira 530 B

1234567891011121314151617181920212223
  1. #compdef jira
  2. #autoload
  3. local -a _1st_arguments
  4. _1st_arguments=(
  5. 'new:create a new issue'
  6. 'dashboard:open the dashboard'
  7. 'reported:search for issues reported by a user'
  8. 'assigned:search for issues assigned to a user'
  9. 'br:open the issue named after the git branch of the current directory'
  10. 'dumpconfig:display effective jira configuration'
  11. )
  12. _arguments -C \
  13. ':command:->command' \
  14. '*::options:->options'
  15. case $state in
  16. (command)
  17. _describe -t commands "jira subcommand" _1st_arguments
  18. return
  19. ;;
  20. esac