_jira 404 B

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