API-CLI

 view release on metacpan or  search on metacpan

examples/zsh/_githubcl  view on Meta::CPAN

                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /events)

                        # ---- Command: GET /events
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /feeds)

                        # ---- Command: GET /feeds
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /gists)

                        # ---- Command: GET /gists
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-since[Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
Only gists updated at or after this time are returned.
]:q-since' \
                            && ret=0


                    ;;
                    /gists/:id)

                        # ---- Command: GET /gists/:id
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->id' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        id)

                        ;;
                        esac

                    ;;
                    /gists/:id/comments)

                        # ---- Command: GET /gists/:id/comments
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->id' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        id)

                        ;;
                        esac

                    ;;
                    /gists/:id/comments/:commentId)

                        # ---- Command: GET /gists/:id/comments/:commentId
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->id' \
                            '4: :->commentId' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        id)

                        ;;
                        commentId)

                        ;;
                        esac

                    ;;
                    /gists/:id/star)

                        # ---- Command: GET /gists/:id/star
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->id' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        id)

                        ;;
                        esac

                    ;;
                    /gists/public)

                        # ---- Command: GET /gists/public
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-since[Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
Only gists updated at or after this time are returned.
]:q-since' \
                            && ret=0


                    ;;
                    /gists/starred)

                        # ---- Command: GET /gists/starred
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-since[Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
Only gists updated at or after this time are returned.
]:q-since' \
                            && ret=0


                    ;;
                    /gitignore/templates)

                        # ---- Command: GET /gitignore/templates
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /gitignore/templates/:language)

                        # ---- Command: GET /gitignore/templates/:language
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->language' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        language)

                        ;;
                        esac

                    ;;
                    /issues)

                        # ---- Command: GET /issues
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-filter[Issues assigned to you / created by you / mentioning you / you'"'"'re
subscribed to updates for / All issues the authenticated user can see
]:q-filter:("assigned" "created" "mentioned" "subscribed" "all")' \
                            '--q-state[]:q-state:("open" "closed")' \
                            '--q-labels[String list of comma separated Label names. Example - bug,ui,@high.]:q-labels' \
                            '--q-sort[]:q-sort:("created" "updated" "comments")' \
                            '--q-direction[]:q-direction:("asc" "desc")' \
                            '--q-since[Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
]:q-since' \
                            && ret=0


                    ;;
                    /legacy/issues/search/:owner/:repository/:state/:keyword)

                        # ---- Command: GET /legacy/issues/search/:owner/:repository/:state/:keyword
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->keyword' \
                            '4: :->state' \
                            '5: :->owner' \
                            '6: :->repository' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        keyword)

                        ;;
                        state)
                                compadd -X 'state:' 'open' 'closed'
                        ;;
                        owner)

                        ;;
                        repository)

                        ;;
                        esac

                    ;;
                    /legacy/repos/search/:keyword)

                        # ---- Command: GET /legacy/repos/search/:keyword
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->keyword' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-order[The sort field. if sort param is provided. Can be either asc or desc.]:q-order:("desc" "asc")' \
                            '--q-language[Filter results by language]:q-language' \
                            '--q-start_page[The page number to fetch]:q-start_page' \
                            '--q-sort[The sort field. One of stars, forks, or updated. Default: results are sorted by best match.]:q-sort:("updated" "stars" "forks")' \
                            && ret=0

                        case $state in
                        keyword)

                        ;;
                        esac

                    ;;
                    /legacy/user/email/:email)

                        # ---- Command: GET /legacy/user/email/:email
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->email' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        email)

                        ;;
                        esac

                    ;;
                    /legacy/user/search/:keyword)

                        # ---- Command: GET /legacy/user/search/:keyword
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->keyword' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-order[The sort field. if sort param is provided. Can be either asc or desc.]:q-order:("desc" "asc")' \
                            '--q-start_page[The page number to fetch]:q-start_page' \
                            '--q-sort[The sort field. One of stars, forks, or updated. Default: results are sorted by best match.]:q-sort:("updated" "stars" "forks")' \
                            && ret=0

                        case $state in
                        keyword)

                        ;;
                        esac

                    ;;
                    /meta)

                        # ---- Command: GET /meta
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /networks/:owner/:repo/events)

                        # ---- Command: GET /networks/:owner/:repo/events
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /notifications)

                        # ---- Command: GET /notifications
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \

examples/zsh/_githubcl  view on Meta::CPAN

                            '2: :->cmd2' \
                            '3: :->org' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        org)

                        ;;
                        esac

                    ;;
                    /orgs/:org/events)

                        # ---- Command: GET /orgs/:org/events
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->org' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        org)

                        ;;
                        esac

                    ;;
                    /orgs/:org/issues)

                        # ---- Command: GET /orgs/:org/issues
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->org' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-filter[Issues assigned to you / created by you / mentioning you / you'"'"'re
subscribed to updates for / All issues the authenticated user can see
]:q-filter:("assigned" "created" "mentioned" "subscribed" "all")' \
                            '--q-state[]:q-state:("open" "closed")' \
                            '--q-labels[String list of comma separated Label names. Example - bug,ui,@high.]:q-labels' \
                            '--q-sort[]:q-sort:("created" "updated" "comments")' \
                            '--q-direction[]:q-direction:("asc" "desc")' \
                            '--q-since[Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
]:q-since' \
                            && ret=0

                        case $state in
                        org)

                        ;;
                        esac

                    ;;
                    /orgs/:org/members)

                        # ---- Command: GET /orgs/:org/members
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->org' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        org)

                        ;;
                        esac

                    ;;
                    /orgs/:org/members/:username)

                        # ---- Command: GET /orgs/:org/members/:username
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->org' \
                            '4: :->username' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        org)

                        ;;
                        username)

                        ;;
                        esac

                    ;;

examples/zsh/_githubcl  view on Meta::CPAN

                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/hooks/:hookId)

                        # ---- Command: GET /repos/:owner/:repo/hooks/:hookId
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->hookId' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        hookId)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/issues)

                        # ---- Command: GET /repos/:owner/:repo/issues
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-filter[Issues assigned to you / created by you / mentioning you / you'"'"'re
subscribed to updates for / All issues the authenticated user can see
]:q-filter:("assigned" "created" "mentioned" "subscribed" "all")' \
                            '--q-state[]:q-state:("open" "closed")' \
                            '--q-labels[String list of comma separated Label names. Example - bug,ui,@high.]:q-labels' \
                            '--q-sort[]:q-sort:("created" "updated" "comments")' \
                            '--q-direction[]:q-direction:("asc" "desc")' \
                            '--q-since[Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
]:q-since' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/issues/:number)

                        # ---- Command: GET /repos/:owner/:repo/issues/:number
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->number' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        number)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/issues/:number/comments)

                        # ---- Command: GET /repos/:owner/:repo/issues/:number/comments
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->number' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \

examples/zsh/_githubcl  view on Meta::CPAN

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        number)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/issues/:number/labels)

                        # ---- Command: GET /repos/:owner/:repo/issues/:number/labels
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->number' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        number)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/issues/comments)

                        # ---- Command: GET /repos/:owner/:repo/issues/comments
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-direction[Ignored without '"'"'sort'"'"' parameter.]:q-direction' \
                            '--q-sort[]:q-sort:("created" "updated")' \
                            '--q-since[The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
]:q-since' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/issues/comments/:commentId)

                        # ---- Command: GET /repos/:owner/:repo/issues/comments/:commentId
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->commentId' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        commentId)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/issues/events)

                        # ---- Command: GET /repos/:owner/:repo/issues/events
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \

examples/zsh/_githubcl  view on Meta::CPAN

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        number)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/pulls/:number/merge)

                        # ---- Command: GET /repos/:owner/:repo/pulls/:number/merge
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->number' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        number)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/pulls/comments)

                        # ---- Command: GET /repos/:owner/:repo/pulls/comments
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-direction[Ignored without '"'"'sort'"'"' parameter.]:q-direction' \
                            '--q-sort[]:q-sort:("created" "updated")' \
                            '--q-since[The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
]:q-since' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/pulls/comments/:commentId)

                        # ---- Command: GET /repos/:owner/:repo/pulls/comments/:commentId
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->commentId' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        commentId)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/readme)

                        # ---- Command: GET /repos/:owner/:repo/readme
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \

examples/zsh/_githubcl  view on Meta::CPAN

                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-since[The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
]:q-since' \
                            && ret=0


                    ;;
                    /search/code)

                        # ---- Command: GET /search/code
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-order[The sort field. if sort param is provided. Can be either asc or desc.]:q-order:("desc" "asc")' \
                            '--q-q[The search terms. This can be any combination of the supported code
search parameters:
'"'"'Search In'"'"' Qualifies which fields are searched. With this qualifier
you can restrict the search to just the file contents, the file path,
or both.
'"'"'Languages'"'"' Searches code based on the language it'"'"'s written in.
'"'"'Forks'"'"' Filters repositories based on the number of forks, and/or
whether code from forked repositories should be included in the results
at all.
'"'"'Size'"'"' Finds files that match a certain size (in bytes).
'"'"'Path'"'"' Specifies the path that the resulting file must be at.
'"'"'Extension'"'"' Matches files with a certain extension.
'"'"'Users'"'"' or '"'"'Repositories'"'"' Limits searches to a specific user or repository.
]:q-q' \
                            '--q-sort[Can only be '"'"'indexed'"'"', which indicates how recently a file has been indexed
by the GitHub search infrastructure. If not provided, results are sorted
by best match.
]:q-sort:("indexed")' \
                            && ret=0


                    ;;
                    /search/issues)

                        # ---- Command: GET /search/issues
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-order[The sort field. if sort param is provided. Can be either asc or desc.]:q-order:("desc" "asc")' \
                            '--q-q[The q search term can also contain any combination of the supported issue search qualifiers:]:q-q' \
                            '--q-sort[The sort field. Can be comments, created, or updated. Default: results are sorted by best match.]:q-sort:("updated" "created" "comments")' \
                            && ret=0


                    ;;
                    /search/repositories)

                        # ---- Command: GET /search/repositories
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-order[The sort field. if sort param is provided. Can be either asc or desc.]:q-order:("desc" "asc")' \
                            '--q-q[The search terms. This can be any combination of the supported repository
search parameters:
'"'"'Search In'"'"' Qualifies which fields are searched. With this qualifier you
can restrict the search to just the repository name, description, readme,
or any combination of these.
'"'"'Size'"'"' Finds repositories that match a certain size (in kilobytes).
'"'"'Forks'"'"' Filters repositories based on the number of forks, and/or whether
forked repositories should be included in the results at all.
'"'"'Created'"'"' and '"'"'Last Updated'"'"' Filters repositories based on times of
creation, or when they were last updated.
'"'"'Users or Repositories'"'"' Limits searches to a specific user or repository.
'"'"'Languages'"'"' Searches repositories based on the language they are written in.
'"'"'Stars'"'"' Searches repositories based on the number of stars.
]:q-q' \
                            '--q-sort[If not provided, results are sorted by best match.]:q-sort:("stars" "forks" "updated")' \
                            && ret=0


                    ;;
                    /search/users)

                        # ---- Command: GET /search/users
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-order[The sort field. if sort param is provided. Can be either asc or desc.]:q-order:("desc" "asc")' \
                            '--q-q[The search terms. This can be any combination of the supported user
search parameters:
'"'"'Search In'"'"' Qualifies which fields are searched. With this qualifier you
can restrict the search to just the username, public email, full name,
location, or any combination of these.
'"'"'Repository count'"'"' Filters users based on the number of repositories they
have.
'"'"'Location'"'"' Filter users by the location indicated in their profile.
'"'"'Language'"'"' Search for users that have repositories that match a certain
language.
'"'"'Created'"'"' Filter users based on when they joined.
'"'"'Followers'"'"' Filter users based on the number of followers they have.
]:q-q' \
                            '--q-sort[If not provided, results are sorted by best match.]:q-sort:("followers" "repositories" "joined")' \
                            && ret=0


                    ;;
                    /teams/:teamId)

                        # ---- Command: GET /teams/:teamId
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->teamId' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        teamId)

                        ;;
                        esac

                    ;;
                    /teams/:teamId/members)

examples/zsh/_githubcl  view on Meta::CPAN


                    ;;
                    /user/following)

                        # ---- Command: GET /user/following
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /user/following/:username)

                        # ---- Command: GET /user/following/:username
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->username' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        username)

                        ;;
                        esac

                    ;;
                    /user/issues)

                        # ---- Command: GET /user/issues
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-filter[Issues assigned to you / created by you / mentioning you / you'"'"'re
subscribed to updates for / All issues the authenticated user can see
]:q-filter:("assigned" "created" "mentioned" "subscribed" "all")' \
                            '--q-state[]:q-state:("open" "closed")' \
                            '--q-labels[String list of comma separated Label names. Example - bug,ui,@high.]:q-labels' \
                            '--q-sort[]:q-sort:("created" "updated" "comments")' \
                            '--q-direction[]:q-direction:("asc" "desc")' \
                            '--q-since[Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
]:q-since' \
                            && ret=0


                    ;;
                    /user/keys)

                        # ---- Command: GET /user/keys
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /user/keys/:keyId)

                        # ---- Command: GET /user/keys/:keyId
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->keyId' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        keyId)

                        ;;
                        esac

                    ;;
                    /user/orgs)

                        # ---- Command: GET /user/orgs
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /user/repos)

                        # ---- Command: GET /user/repos
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-type[]:q-type:("all" "public" "private" "forks" "sources" "member")' \
                            && ret=0


                    ;;
                    /user/starred)

                        # ---- Command: GET /user/starred
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-direction[Ignored without '"'"'sort'"'"' parameter.]:q-direction' \
                            '--q-sort[]:q-sort:("created" "updated")' \
                            && ret=0


                    ;;
                    /user/starred/:owner/:repo)

                        # ---- Command: GET /user/starred/:owner/:repo
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /user/subscriptions)

                        # ---- Command: GET /user/subscriptions
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /user/subscriptions/:owner/:repo)

                        # ---- Command: GET /user/subscriptions/:owner/:repo
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \



( run in 2.649 seconds using v1.01-cache-2.11-cpan-c966e8aa7e8 )