API-CLI

 view release on metacpan or  search on metacpan

examples/zsh/_githubcl  view on Meta::CPAN

                            '--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' \

examples/zsh/_githubcl  view on Meta::CPAN


                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

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

                        # ---- Command: GET /repos/:owner/:repo/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/commits)

                        # ---- Command: GET /repos/:owner/:repo/commits
                        _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-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' \
                            '--q-sha[Sha or branch to start listing commits from.]:q-sha' \
                            '--q-path[Only commits containing this file path will be returned.]:q-path' \
                            '--q-author[GitHub login, name, or email by which to filter by commit author.]:q-author' \
                            '--q-until[ISO 8601 Date - Only commits before this date will be returned.]:q-until' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/commits/:ref/status)

                        # ---- Command: GET /repos/:owner/:repo/commits/:ref/status
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->owner' \
                            '4: :->repo' \
                            '5: :->ref' \
                            '--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)

                        ;;
                        ref)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/commits/:shaCode)

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



( run in 0.820 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )