_jira 559 B

123456789101112131415161718192021222324
  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. 'tempo:open the tempo'
  8. 'reported:search for issues reported by a user'
  9. 'assigned:search for issues assigned to a user'
  10. 'branch:open the issue named after the git branch of the current directory'
  11. 'dumpconfig:display effective jira configuration'
  12. )
  13. _arguments -C \
  14. ':command:->command' \
  15. '*::options:->options'
  16. case $state in
  17. (command)
  18. _describe -t commands "jira subcommand" _1st_arguments
  19. return
  20. ;;
  21. esac