_jira 583 B

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