_jira 619 B

1234567891011121314151617181920212223242526
  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. 'help:print usage help to stdout'
  14. )
  15. _arguments -C \
  16. ':command:->command' \
  17. '*::options:->options'
  18. case $state in
  19. (command)
  20. _describe -t commands "jira subcommand" _1st_arguments
  21. return
  22. ;;
  23. esac