API-CLI

 view release on metacpan or  search on metacpan

examples/zsh/_githubcl  view on Meta::CPAN

#compdef githubcl

_githubcl() {
    local program=githubcl
    typeset -A opt_args
    local curcontext="$curcontext" state line context


        # ---- Command: 
        _arguments -s  \
            '1: :->cmd1' \
            '*: :->args' \
            && ret=0


        case $state in
        cmd1)
            _alternative 'args:cmd2:((DELETE\:"DELETE call" GET\:"GET call" PATCH\:"PATCH call" POST\:"POST call" PUT\:"PUT call" help\:"Show command help"))'
        ;;

        args)
            case $line[1] in
            DELETE)

                # ---- Command: DELETE
                _arguments -s -C \
                    '1: :->cmd1' \
                    '2: :->cmd2' \
                    '*: :->args' \
                    && ret=0


                case $state in
                cmd2)
                    _alternative 'args:cmd3:((/gists/\\:id\:"Delete a gist." /gists/\\:id/comments/\\:commentId\:"Delete a comment." /gists/\\:id/star\:"Unstar a gist." /notifications/threads/\\:id/subscription\:"Delete a Thread Subscription." /orgs/...
                ;;

                args)
                    case $line[2] in
                    /gists/:id)

                        # ---- Command: DELETE /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/:commentId)

                        # ---- Command: DELETE /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: DELETE /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

                    ;;
                    /notifications/threads/:id/subscription)

                        # ---- Command: DELETE /notifications/threads/:id/subscription
                        _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

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

                        # ---- Command: DELETE /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

                    ;;
                    /orgs/:org/public_members/:username)

                        # ---- Command: DELETE /orgs/:org/public_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]' \

examples/zsh/_githubcl  view on Meta::CPAN

                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

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

                        # ---- Command: DELETE /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]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    esac

                ;;

                esac
            ;;
            GET)

                # ---- Command: GET
                _arguments -s -C \
                    '1: :->cmd1' \
                    '2: :->cmd2' \
                    '*: :->args' \
                    && ret=0


                case $state in
                cmd2)
                    _alternative 'args:cmd3:((/emojis\:"Lists all the emojis available to use on GitHub...." /events\:"List public events." /feeds\:"List Feeds." /gists\:"List the authenticated user'"'"'s gists or if called a..." /gists/\\:id\:"Get a...
                ;;

                args)
                    case $line[2] in
                    /emojis)

                        # ---- Command: GET /emojis
                        _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


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

examples/zsh/_githubcl  view on Meta::CPAN

                            '-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' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-all[True to show notifications marked as read.]:q-all' \
                            '--q-participating[True to show only notifications in which the user is directly participating
or mentioned.
]:q-participating' \
                            '--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


                    ;;
                    /notifications/threads/:id)

                        # ---- Command: GET /notifications/threads/: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

                    ;;
                    /notifications/threads/:id/subscription)

                        # ---- Command: GET /notifications/threads/:id/subscription
                        _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

                    ;;
                    /orgs/:org)

                        # ---- Command: GET /orgs/:org
                        _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/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

examples/zsh/_githubcl  view on Meta::CPAN

                            '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

                    ;;
                    /users/:username/subscriptions)

                        # ---- Command: GET /users/:username/subscriptions
                        _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

                    ;;
                    esac

                ;;

                esac
            ;;
            PATCH)

                # ---- Command: PATCH
                _arguments -s -C \
                    '1: :->cmd1' \
                    '2: :->cmd2' \
                    '*: :->args' \
                    && ret=0


                case $state in
                cmd2)
                    _alternative 'args:cmd3:((/gists/\\:id\:"Edit a gist." /gists/\\:id/comments/\\:commentId\:"Edit a comment." /notifications/threads/\\:id\:"Mark a thread as read" /orgs/\\:org\:"Edit an Organization." /repos/\\:owner/\\:repo\:"Edi...
                ;;

                args)
                    case $line[2] in
                    /gists/:id)

                        # ---- Command: PATCH /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/:commentId)

                        # ---- Command: PATCH /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

                    ;;
                    /notifications/threads/:id)

                        # ---- Command: PATCH /notifications/threads/: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

                    ;;
                    /orgs/:org)

                        # ---- Command: PATCH /orgs/:org
                        _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

                    ;;
                    /repos/:owner/:repo)

                        # ---- Command: PATCH /repos/: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

examples/zsh/_githubcl  view on Meta::CPAN

                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            && ret=0


                    ;;
                    /user/keys)

                        # ---- Command: POST /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/repos)

                        # ---- Command: POST /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]' \
                            && ret=0


                    ;;
                    esac

                ;;

                esac
            ;;
            PUT)

                # ---- Command: PUT
                _arguments -s -C \
                    '1: :->cmd1' \
                    '2: :->cmd2' \
                    '*: :->args' \
                    && ret=0


                case $state in
                cmd2)
                    _alternative 'args:cmd3:((/gists/\\:id/star\:"Star a gist." /notifications\:"Mark as read." /notifications/threads/\\:id/subscription\:"Set a Thread Subscription." /orgs/\\:org/public_members/\\:username\:"Publicize a user'"'"'s m...
                ;;

                args)
                    case $line[2] in
                    /gists/:id/star)

                        # ---- Command: PUT /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

                    ;;
                    /notifications)

                        # ---- Command: PUT /notifications
                        _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


                    ;;
                    /notifications/threads/:id/subscription)

                        # ---- Command: PUT /notifications/threads/:id/subscription
                        _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

                    ;;
                    /orgs/:org/public_members/:username)

                        # ---- Command: PUT /orgs/:org/public_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

                    ;;
                    /repos/:owner/:repo/collaborators/:user)

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

examples/zsh/_githubcl  view on Meta::CPAN

                            generate)

                                # ---- Command: _meta pod generate
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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


                            ;;
                            esac

                        ;;

                        esac
                    ;;
                    esac

                ;;

                esac
            ;;
            help)

                # ---- Command: help
                _arguments -s -C \
                    '1: :->cmd1' \
                    '2: :->cmd2' \
                    '*: :->args' \
                    && ret=0


                case $state in
                cmd2)
                    _alternative 'args:cmd3:((DELETE GET PATCH POST PUT))'
                ;;

                args)
                    case $line[2] in
                    DELETE)

                        # ---- Command: help DELETE
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->cmd3' \
                            '*: :->args' \
                            && ret=0


                        case $state in
                        cmd3)
                            _alternative 'args:cmd4:((/gists/\\:id /gists/\\:id/comments/\\:commentId /gists/\\:id/star /notifications/threads/\\:id/subscription /orgs/\\:org/members/\\:username /orgs/\\:org/public_members/\\:username /repos/\\:owner...
                        ;;

                        args)
                            case $line[3] in
                            /gists/:id)

                                # ---- Command: help DELETE /gists/:id
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


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

                                # ---- Command: help DELETE /gists/:id/comments/:commentId
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /gists/:id/star)

                                # ---- Command: help DELETE /gists/:id/star
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /notifications/threads/:id/subscription)

                                # ---- Command: help DELETE /notifications/threads/:id/subscription
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


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

                                # ---- Command: help DELETE /orgs/:org/members/:username
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /orgs/:org/public_members/:username)

                                # ---- Command: help DELETE /orgs/:org/public_members/:username
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /repos/:owner/:repo)

                                # ---- Command: help DELETE /repos/:owner/:repo
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \

examples/zsh/_githubcl  view on Meta::CPAN



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

                                # ---- Command: help DELETE /user/starred/:owner/:repo
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


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

                                # ---- Command: help DELETE /user/subscriptions/:owner/:repo
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            esac

                        ;;

                        esac
                    ;;
                    GET)

                        # ---- Command: help GET
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->cmd3' \
                            '*: :->args' \
                            && ret=0


                        case $state in
                        cmd3)
                            _alternative 'args:cmd4:((/emojis /events /feeds /gists /gists/\\:id /gists/\\:id/comments /gists/\\:id/comments/\\:commentId /gists/\\:id/star /gists/public /gists/starred /gitignore/templates /gitignore/templates/\\:lang...
                        ;;

                        args)
                            case $line[3] in
                            /emojis)

                                # ---- Command: help GET /emojis
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /events)

                                # ---- Command: help GET /events
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /feeds)

                                # ---- Command: help GET /feeds
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


examples/zsh/_githubcl  view on Meta::CPAN



                            ;;
                            /meta)

                                # ---- Command: help GET /meta
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


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

                                # ---- Command: help GET /networks/:owner/:repo/events
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /notifications)

                                # ---- Command: help GET /notifications
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /notifications/threads/:id)

                                # ---- Command: help GET /notifications/threads/:id
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /notifications/threads/:id/subscription)

                                # ---- Command: help GET /notifications/threads/:id/subscription
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /orgs/:org)

                                # ---- Command: help GET /orgs/:org
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /orgs/:org/events)

                                # ---- Command: help GET /orgs/:org/events
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /orgs/:org/issues)

                                # ---- Command: help GET /orgs/:org/issues
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \

examples/zsh/_githubcl  view on Meta::CPAN



                            ;;
                            /users/:username/starred)

                                # ---- Command: help GET /users/:username/starred
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /users/:username/subscriptions)

                                # ---- Command: help GET /users/:username/subscriptions
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            esac

                        ;;

                        esac
                    ;;
                    PATCH)

                        # ---- Command: help PATCH
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->cmd3' \
                            '*: :->args' \
                            && ret=0


                        case $state in
                        cmd3)
                            _alternative 'args:cmd4:((/gists/\\:id /gists/\\:id/comments/\\:commentId /notifications/threads/\\:id /orgs/\\:org /repos/\\:owner/\\:repo /repos/\\:owner/\\:repo/comments/\\:commentId /repos/\\:owner/\\:repo/git/refs/\\:...
                        ;;

                        args)
                            case $line[3] in
                            /gists/:id)

                                # ---- Command: help PATCH /gists/:id
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


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

                                # ---- Command: help PATCH /gists/:id/comments/:commentId
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /notifications/threads/:id)

                                # ---- Command: help PATCH /notifications/threads/:id
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /orgs/:org)

                                # ---- Command: help PATCH /orgs/:org
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /repos/:owner/:repo)

                                # ---- Command: help PATCH /repos/:owner/:repo
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


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

                                # ---- Command: help PATCH /repos/:owner/:repo/comments/:commentId
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \

examples/zsh/_githubcl  view on Meta::CPAN



                            ;;
                            /user/keys)

                                # ---- Command: help POST /user/keys
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /user/repos)

                                # ---- Command: help POST /user/repos
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            esac

                        ;;

                        esac
                    ;;
                    PUT)

                        # ---- Command: help PUT
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '3: :->cmd3' \
                            '*: :->args' \
                            && ret=0


                        case $state in
                        cmd3)
                            _alternative 'args:cmd4:((/gists/\\:id/star /notifications /notifications/threads/\\:id/subscription /orgs/\\:org/public_members/\\:username /repos/\\:owner/\\:repo/collaborators/\\:user /repos/\\:owner/\\:repo/contents/\\...
                        ;;

                        args)
                            case $line[3] in
                            /gists/:id/star)

                                # ---- Command: help PUT /gists/:id/star
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /notifications)

                                # ---- Command: help PUT /notifications
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /notifications/threads/:id/subscription)

                                # ---- Command: help PUT /notifications/threads/:id/subscription
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /orgs/:org/public_members/:username)

                                # ---- Command: help PUT /orgs/:org/public_members/:username
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /repos/:owner/:repo/collaborators/:user)

                                # ---- Command: help PUT /repos/:owner/:repo/collaborators/:user
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \
                                    '3: :->cmd3' \
                                    '--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]' \
                                    '--all[]' \
                                    && ret=0


                            ;;
                            /repos/:owner/:repo/contents/:path)

                                # ---- Command: help PUT /repos/:owner/:repo/contents/:path
                                _arguments -s -C \
                                    '1: :->cmd1' \
                                    '2: :->cmd2' \



( run in 3.166 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )