_jira 648 B

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