_jira 456 B

12345678910111213141516171819202122
  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. 'dumpconfig:display effective jira configuration'
  10. )
  11. _arguments -C \
  12. ':command:->command' \
  13. '*::options:->options'
  14. case $state in
  15. (command)
  16. _describe -t commands "jira subcommand" _1st_arguments
  17. return
  18. ;;
  19. esac