API-CLI

 view release on metacpan or  search on metacpan

LICENSE  view on Meta::CPAN

    received the program in object code or executable form alone.)

Source code for a work means the preferred form of the work for making
modifications to it.  For an executable file, complete source code means
all the source code for all modules it contains; but, as a special
exception, it need not include source code for modules which are standard
libraries that accompany the operating system on which the executable
file runs, or for standard header files or definitions files that
accompany that operating system.

  4. You may not copy, modify, sublicense, distribute or transfer the
Program except as expressly provided under this General Public License.
Any attempt otherwise to copy, modify, sublicense, distribute or transfer
the Program is void, and will automatically terminate your rights to use
the Program under this License.  However, parties who have received
copies, or rights to use copies, from you under this General Public
License will not have their licenses terminated so long as such parties
remain in full compliance.

  5. By copying, distributing or modifying the Program (or any work based
on the Program) you indicate your acceptance of this license to do so,
and all its terms and conditions.

  6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the original
licensor to copy, distribute or modify the Program subject to these
terms and conditions.  You may not impose any further restrictions on the
recipients' exercise of the rights granted herein.

  7. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number.  If the Program
specifies a version number of the license which applies to it and "any

LICENSE  view on Meta::CPAN

may not charge a fee for this Package itself. However, you may distribute this
Package in aggregate with other (possibly commercial) programs as part of a
larger (possibly commercial) software distribution provided that you do not
advertise this Package as a product of your own.

6. The scripts and library files supplied as input to or produced as output
from the programs of this Package do not automatically fall under the copyright
of this Package, but belong to whomever generated them, and may be sold
commercially, and may be aggregated with this Package.

7. C or perl subroutines supplied by you and linked into this Package shall not
be considered part of this Package.

8. The name of the Copyright Holder may not be used to endorse or promote
products derived from this software without specific prior written permission.

9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

The End

examples/bash/digitaloceancl.bash  view on Meta::CPAN

    __digitaloceancl_handle_options_flags

    case $INDEX in

    0)
        __comp_current_options || return
        __digitaloceancl_dynamic_comp 'commands' 'GET'$'\t''GET call'$'\n''POST'$'\t''POST call'$'\n''help'$'\t''Show command help'

    ;;
    *)
    # subcmds
    case ${MYWORDS[0]} in
      GET)
        FLAGS+=()
        OPTIONS+=()
        __digitaloceancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __digitaloceancl_dynamic_comp 'commands' '/account'$'\t''Account information'$'\n''/droplets'$'\t''List all droplets'$'\n''/droplets/:id'$'\t''Retrieve a droplet by id'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /account)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /droplets)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /droplets/:id)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/digitaloceancl.bash  view on Meta::CPAN

        OPTIONS+=()
        __digitaloceancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __digitaloceancl_dynamic_comp 'commands' '/droplets/:id/actions'$'\t''Trigger droplet action'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /droplets/:id/actions)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
        esac

        ;;
        esac
      ;;
      _meta)
        FLAGS+=()
        OPTIONS+=()
        __digitaloceancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __digitaloceancl_dynamic_comp 'commands' 'completion'$'\t''Shell completion functions'$'\n''pod'$'\t''Pod documentation'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          completion)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __digitaloceancl_dynamic_comp 'commands' 'generate'$'\t''Generate self completion'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=('--zsh' 'for zsh' '--bash' 'for bash')
                OPTIONS+=('--name' 'name of the program (optional, override name in spec)')
                __digitaloceancl_handle_options_flags
                  case $INDEX in
                  *)
                    __comp_current_options true || return # after parameters
                    case ${MYWORDS[$INDEX-1]} in
                      --data-file)

examples/bash/digitaloceancl.bash  view on Meta::CPAN

            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __digitaloceancl_dynamic_comp 'commands' 'generate'$'\t''Generate self pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=()
                OPTIONS+=()
                __digitaloceancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
        esac

        ;;
        esac

examples/bash/digitaloceancl.bash  view on Meta::CPAN

        OPTIONS+=()
        __digitaloceancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __digitaloceancl_dynamic_comp 'commands' 'GET'$'\n''POST'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          GET)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __digitaloceancl_dynamic_comp 'commands' '/account'$'\n''/droplets'$'\n''/droplets/:id'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /account)
                FLAGS+=()
                OPTIONS+=()
                __digitaloceancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /droplets)
                FLAGS+=()
                OPTIONS+=()
                __digitaloceancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /droplets/:id)
                FLAGS+=()
                OPTIONS+=()
                __digitaloceancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          POST)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __digitaloceancl_dynamic_comp 'commands' '/droplets/:id/actions'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /droplets/:id/actions)
                FLAGS+=()
                OPTIONS+=()
                __digitaloceancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          _meta)
            FLAGS+=()
            OPTIONS+=()
            __digitaloceancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __digitaloceancl_dynamic_comp 'commands' 'completion'$'\n''pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              completion)
                FLAGS+=()
                OPTIONS+=()
                __digitaloceancl_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __digitaloceancl_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __digitaloceancl_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
              pod)
                FLAGS+=()
                OPTIONS+=()
                __digitaloceancl_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __digitaloceancl_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __digitaloceancl_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
            esac

            ;;
            esac

examples/bash/githubcl.bash  view on Meta::CPAN

    __githubcl_handle_options_flags

    case $INDEX in

    0)
        __comp_current_options || return
        __githubcl_dynamic_comp 'commands' 'DELETE'$'\t''DELETE call'$'\n''GET'$'\t''GET call'$'\n''PATCH'$'\t''PATCH call'$'\n''POST'$'\t''POST call'$'\n''PUT'$'\t''PUT call'$'\n''help'$'\t''Show command help'

    ;;
    *)
    # subcmds
    case ${MYWORDS[0]} in
      DELETE)
        FLAGS+=()
        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' '/gists/:id'$'\t''Delete a gist.'$'\n''/gists/:id/comments/:commentId'$'\t''Delete a comment.'$'\n''/gists/:id/star'$'\t''Unstar a gist.'$'\n''/notifications/threads/:id/subscription'$'\t''Delete a Threa...

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /gists/:id)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /notifications/threads/:id/subscription)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /repos/:owner/:repo/subscription)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /user/emails)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/following/:username)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /user/subscriptions/:owner/:repo)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;

examples/bash/githubcl.bash  view on Meta::CPAN

        esac
      ;;
      GET)
        FLAGS+=()
        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' '/emojis'$'\t''Lists all the emojis available to use on GitHub....'$'\n''/events'$'\t''List public events.'$'\n''/feeds'$'\t''List Feeds.'$'\n''/gists'$'\t''List the authenticated user'"'"'s gists or if ...

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /emojis)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /events)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /feeds)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /gists)
            FLAGS+=()
            OPTIONS+=('--q-since' 'Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
Only gists updated at or after this time are returned.
')
            __githubcl_handle_options_flags
              case $INDEX in
              *)
                __comp_current_options true || return # after parameters

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /gitignore/templates)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /gitignore/templates/:language)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /issues)
            FLAGS+=()
            OPTIONS+=('--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-state' '' '--q-labels' 'String list of comma separated Label names. Example - bug,ui,@high.' '--q-sort' '' '--q-direction' '' '--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.
')
            __githubcl_handle_options_flags
              case $INDEX in
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;
                  --q-filter)
                    _githubcl_compreply "'assigned'"$'\n'"'created'"$'\n'"'mentioned'"$'\n'"'subscribed'"$'\n'"'all'"
                  ;;
                  --q-state)
                    _githubcl_compreply "'open'"$'\n'"'closed'"
                  ;;
                  --q-labels)
                  ;;
                  --q-sort)
                    _githubcl_compreply "'created'"$'\n'"'updated'"$'\n'"'comments'"
                  ;;
                  --q-direction)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /meta)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /networks/:owner/:repo/events)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /notifications/threads/:id/subscription)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in

examples/bash/githubcl.bash  view on Meta::CPAN

                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /orgs/:org/issues)
            FLAGS+=()
            OPTIONS+=('--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-state' '' '--q-labels' 'String list of comma separated Label names. Example - bug,ui,@high.' '--q-sort' '' '--q-direction' '' '--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.
')
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;
                  --q-filter)
                    _githubcl_compreply "'assigned'"$'\n'"'created'"$'\n'"'mentioned'"$'\n'"'subscribed'"$'\n'"'all'"
                  ;;
                  --q-state)
                    _githubcl_compreply "'open'"$'\n'"'closed'"
                  ;;
                  --q-labels)
                  ;;
                  --q-sort)
                    _githubcl_compreply "'created'"$'\n'"'updated'"$'\n'"'comments'"
                  ;;
                  --q-direction)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /rate_limit)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /repos/:owner/:repo)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)

examples/bash/githubcl.bash  view on Meta::CPAN

                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /repos/:owner/:repo/issues)
            FLAGS+=()
            OPTIONS+=('--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-state' '' '--q-labels' 'String list of comma separated Label names. Example - bug,ui,@high.' '--q-sort' '' '--q-direction' '' '--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.
')
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;
                  --q-filter)
                    _githubcl_compreply "'assigned'"$'\n'"'created'"$'\n'"'mentioned'"$'\n'"'subscribed'"$'\n'"'all'"
                  ;;
                  --q-state)
                    _githubcl_compreply "'open'"$'\n'"'closed'"
                  ;;
                  --q-labels)
                  ;;
                  --q-sort)
                    _githubcl_compreply "'created'"$'\n'"'updated'"$'\n'"'comments'"
                  ;;
                  --q-direction)

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /repos/:owner/:repo/subscribers)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /repos/:owner/:repo/subscription)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /user)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/emails)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/followers)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/following)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/following/:username)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /user/issues)
            FLAGS+=()
            OPTIONS+=('--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-state' '' '--q-labels' 'String list of comma separated Label names. Example - bug,ui,@high.' '--q-sort' '' '--q-direction' '' '--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.
')
            __githubcl_handle_options_flags
              case $INDEX in
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;
                  --q-filter)
                    _githubcl_compreply "'assigned'"$'\n'"'created'"$'\n'"'mentioned'"$'\n'"'subscribed'"$'\n'"'all'"
                  ;;
                  --q-state)
                    _githubcl_compreply "'open'"$'\n'"'closed'"
                  ;;
                  --q-labels)
                  ;;
                  --q-sort)
                    _githubcl_compreply "'created'"$'\n'"'updated'"$'\n'"'comments'"
                  ;;
                  --q-direction)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /user/keys)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/keys/:keyId)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /user/orgs)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/repos)
            FLAGS+=()
            OPTIONS+=('--q-type' '')
            __githubcl_handle_options_flags
              case $INDEX in
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /user/subscriptions)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/subscriptions/:owner/:repo)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /user/teams)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /users)
            FLAGS+=()
            OPTIONS+=('--q-since' 'The integer ID of the last User that you'"'"'ve seen.')
            __githubcl_handle_options_flags
              case $INDEX in
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /users/:username/subscriptions)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in

examples/bash/githubcl.bash  view on Meta::CPAN

        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' '/gists/:id'$'\t''Edit a gist.'$'\n''/gists/:id/comments/:commentId'$'\t''Edit a comment.'$'\n''/notifications/threads/:id'$'\t''Mark a thread as read'$'\n''/orgs/:org'$'\t''Edit an Organization.'$'\n''/...

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /gists/:id)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /user)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
        esac

        ;;
        esac
      ;;
      POST)
        FLAGS+=()
        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' '/gists'$'\t''Create a gist.'$'\n''/gists/:id/comments'$'\t''Create a commen'$'\n''/gists/:id/forks'$'\t''Fork a gist.'$'\n''/markdown'$'\t''Render an arbitrary Markdown document...'$'\n''/markdown/raw'$...

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /gists)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /gists/:id/comments)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /markdown)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /markdown/raw)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /orgs/:org/repos)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /user/emails)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/keys)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /user/repos)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
        esac

        ;;
        esac
      ;;
      PUT)
        FLAGS+=()
        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' '/gists/:id/star'$'\t''Star a gist.'$'\n''/notifications'$'\t''Mark as read.'$'\n''/notifications/threads/:id/subscription'$'\t''Set a Thread Subscription.'$'\n''/orgs/:org/public_members/:username'$'\t'...

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /gists/:id/star)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/githubcl.bash  view on Meta::CPAN

                  ;;

                esac
                ;;
            esac
          ;;
          /notifications)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
          /notifications/threads/:id/subscription)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /repos/:owner/:repo/subscription)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;

examples/bash/githubcl.bash  view on Meta::CPAN

              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /user/subscriptions/:owner/:repo)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              3)
                  __comp_current_options || return
              ;;

examples/bash/githubcl.bash  view on Meta::CPAN

        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' 'completion'$'\t''Shell completion functions'$'\n''pod'$'\t''Pod documentation'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          completion)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' 'generate'$'\t''Generate self completion'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=('--zsh' 'for zsh' '--bash' 'for bash')
                OPTIONS+=('--name' 'name of the program (optional, override name in spec)')
                __githubcl_handle_options_flags
                  case $INDEX in
                  *)
                    __comp_current_options true || return # after parameters
                    case ${MYWORDS[$INDEX-1]} in
                      --data-file)

examples/bash/githubcl.bash  view on Meta::CPAN

            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' 'generate'$'\t''Generate self pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
        esac

        ;;
        esac

examples/bash/githubcl.bash  view on Meta::CPAN

        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' 'DELETE'$'\n''GET'$'\n''PATCH'$'\n''POST'$'\n''PUT'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          DELETE)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' '/gists/:id'$'\n''/gists/:id/comments/:commentId'$'\n''/gists/:id/star'$'\n''/notifications/threads/:id/subscription'$'\n''/orgs/:org/members/:username'$'\n''/orgs/:org/public_members/:username'$'\n'...

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /gists/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/star)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /notifications/threads/:id/subscription)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/public_members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/collaborators/:user)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/contents/:path)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/downloads/:downloadId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/refs/:ref)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/hooks/:hookId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/labels)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/labels/:name)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/keys/:keyId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/labels/:name)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/milestones/:number)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases/assets/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/subscription)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/memberships/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/repos/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/emails)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/following/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/keys/:keyId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/starred/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/subscriptions/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          GET)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' '/emojis'$'\n''/events'$'\n''/feeds'$'\n''/gists'$'\n''/gists/:id'$'\n''/gists/:id/comments'$'\n''/gists/:id/comments/:commentId'$'\n''/gists/:id/star'$'\n''/gists/public'$'\n''/gists/starred'$'\n''/...

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /emojis)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /feeds)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/star)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/public)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/starred)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gitignore/templates)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gitignore/templates/:language)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /issues)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /legacy/issues/search/:owner/:repository/:state/:keyword)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /legacy/repos/search/:keyword)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /legacy/user/email/:email)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /legacy/user/search/:keyword)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /meta)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /networks/:owner/:repo/events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /notifications)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /notifications/threads/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /notifications/threads/:id/subscription)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/issues)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/members)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/public_members)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/public_members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/repos)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/teams)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /rate_limit)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/:archive_format/:path)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/assignees)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/assignees/:assignee)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/branches)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/branches/:branch)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/collaborators)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/collaborators/:user)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/commits)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/commits/:ref/status)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/commits/:shaCode)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/commits/:shaCode/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/compare/:baseId...:headId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/contents/:path)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/contributors)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/deployments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/deployments/:id/statuses)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/downloads)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/downloads/:downloadId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/forks)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/blobs/:shaCode)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/commits/:shaCode)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/refs)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/refs/:ref)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/tags/:shaCode)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/trees/:shaCode)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/hooks)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/hooks/:hookId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/labels)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/events/:eventId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/keys)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/keys/:keyId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/labels)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/labels/:name)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/languages)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/milestones)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/milestones/:number)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/milestones/:number/labels)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/notifications)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number/commits)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number/files)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number/merge)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/readme)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases/:id/assets)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases/assets/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/stargazers)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/stats/code_frequency)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/stats/commit_activity)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/stats/contributors)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/stats/participation)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/stats/punch_card)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/statuses/:ref)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/subscribers)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/subscription)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/tags)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/teams)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/watchers)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repositories)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /search/code)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /search/issues)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /search/repositories)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /search/users)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/members)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/memberships/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/repos)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/repos/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/emails)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/followers)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/following)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/following/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/issues)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/keys)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/keys/:keyId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/orgs)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/repos)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/starred)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/starred/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/subscriptions)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/subscriptions/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/teams)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/events/orgs/:org)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/followers)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/following/:targetUser)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/gists)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/keys)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/orgs)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/received_events)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/received_events/public)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/repos)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/starred)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /users/:username/subscriptions)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          PATCH)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' '/gists/:id'$'\n''/gists/:id/comments/:commentId'$'\n''/notifications/threads/:id'$'\n''/orgs/:org'$'\n''/repos/:owner/:repo'$'\n''/repos/:owner/:repo/comments/:commentId'$'\n''/repos/:owner/:repo/gi...

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /gists/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /notifications/threads/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/refs/:ref)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/hooks/:hookId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/labels/:name)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/milestones/:number)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/comments/:commentId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases/assets/:id)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          POST)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' '/gists'$'\n''/gists/:id/comments'$'\n''/gists/:id/forks'$'\n''/markdown'$'\n''/markdown/raw'$'\n''/orgs/:org/repos'$'\n''/orgs/:org/teams'$'\n''/repos/:owner/:repo/commits/:shaCode/comments'$'\n''/r...

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /gists)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /gists/:id/forks)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /markdown)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /markdown/raw)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/repos)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/teams)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/commits/:shaCode/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/deployments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/deployments/:id/statuses)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/forks)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/blobs)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/commits)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/refs)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/tags)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/git/trees)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/hooks)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/hooks/:hookId/tests)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/labels)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/keys)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/labels)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/merges)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/milestones)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number/comments)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/releases)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/statuses/:ref)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/emails)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/keys)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/repos)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          PUT)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' '/gists/:id/star'$'\n''/notifications'$'\n''/notifications/threads/:id/subscription'$'\n''/orgs/:org/public_members/:username'$'\n''/repos/:owner/:repo/collaborators/:user'$'\n''/repos/:owner/:repo/c...

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /gists/:id/star)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /notifications)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /notifications/threads/:id/subscription)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /orgs/:org/public_members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/collaborators/:user)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/contents/:path)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/issues/:number/labels)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/notifications)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/pulls/:number/merge)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /repos/:owner/:repo/subscription)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/members/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/memberships/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /teams/:teamId/repos/:org/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/following/:username)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/starred/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /user/subscriptions/:owner/:repo)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          _meta)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __githubcl_dynamic_comp 'commands' 'completion'$'\n''pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              completion)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __githubcl_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __githubcl_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
              pod)
                FLAGS+=()
                OPTIONS+=()
                __githubcl_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __githubcl_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __githubcl_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
            esac

            ;;
            esac

examples/bash/metacpancl.bash  view on Meta::CPAN

    __metacpancl_handle_options_flags

    case $INDEX in

    0)
        __comp_current_options || return
        __metacpancl_dynamic_comp 'commands' 'GET'$'\t''GET call'$'\n''POST'$'\t''POST call'$'\n''help'$'\t''Show command help'

    ;;
    *)
    # subcmds
    case ${MYWORDS[0]} in
      GET)
        FLAGS+=()
        OPTIONS+=()
        __metacpancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __metacpancl_dynamic_comp 'commands' '/author/:author'$'\t''Author information'$'\n''/distribution/:distribution'$'\t''Distribution information not specific to a version...'$'\n''/module/:module'$'\t''Module information'$'\n''/pod/:module...

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /author/:author)
            FLAGS+=()
            OPTIONS+=()
            __metacpancl_handle_options_flags
              case $INDEX in
              2)
                  __comp_current_options || return
              ;;
              *)

examples/bash/metacpancl.bash  view on Meta::CPAN

        OPTIONS+=()
        __metacpancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __metacpancl_dynamic_comp 'commands' '/file'$'\t''file'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /file)
            FLAGS+=()
            OPTIONS+=()
            __metacpancl_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
        esac

        ;;
        esac
      ;;
      _meta)
        FLAGS+=()
        OPTIONS+=()
        __metacpancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __metacpancl_dynamic_comp 'commands' 'completion'$'\t''Shell completion functions'$'\n''pod'$'\t''Pod documentation'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          completion)
            FLAGS+=()
            OPTIONS+=()
            __metacpancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __metacpancl_dynamic_comp 'commands' 'generate'$'\t''Generate self completion'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=('--zsh' 'for zsh' '--bash' 'for bash')
                OPTIONS+=('--name' 'name of the program (optional, override name in spec)')
                __metacpancl_handle_options_flags
                  case $INDEX in
                  *)
                    __comp_current_options true || return # after parameters
                    case ${MYWORDS[$INDEX-1]} in
                      --data-file)

examples/bash/metacpancl.bash  view on Meta::CPAN

            OPTIONS+=()
            __metacpancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __metacpancl_dynamic_comp 'commands' 'generate'$'\t''Generate self pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
        esac

        ;;
        esac

examples/bash/metacpancl.bash  view on Meta::CPAN

        OPTIONS+=()
        __metacpancl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __metacpancl_dynamic_comp 'commands' 'GET'$'\n''POST'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          GET)
            FLAGS+=()
            OPTIONS+=()
            __metacpancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __metacpancl_dynamic_comp 'commands' '/author/:author'$'\n''/distribution/:distribution'$'\n''/module/:module'$'\n''/pod/:module'$'\n''/release/:author/:release'$'\n''/release/:distribution'$'\n''/release/_search'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /author/:author)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /distribution/:distribution)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /module/:module)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /pod/:module)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /release/:author/:release)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /release/:distribution)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
              /release/_search)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          POST)
            FLAGS+=()
            OPTIONS+=()
            __metacpancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __metacpancl_dynamic_comp 'commands' '/file'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              /file)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
          _meta)
            FLAGS+=()
            OPTIONS+=()
            __metacpancl_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __metacpancl_dynamic_comp 'commands' 'completion'$'\n''pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              completion)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __metacpancl_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __metacpancl_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
              pod)
                FLAGS+=()
                OPTIONS+=()
                __metacpancl_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __metacpancl_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __metacpancl_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
            esac

            ;;
            esac

examples/bin/metacpancl  view on Meta::CPAN

use 5.010;
use Data::Dumper;
use FindBin '$Bin';
use lib "$Bin/../../lib";

use API::CLI::App::Spec;

package API::CLI::MetaCPAN;
use base 'API::CLI';

sub add_auth {
}

package main;

my $appspec_file = "$Bin/../metacpancl-appspec.yaml";
my $spec = API::CLI::App::Spec->read($appspec_file);
my $runner = App::Spec::Run->new(
    spec => $spec,
    cmd => API::CLI::MetaCPAN->new(
        dir => "$ENV{HOME}/.githubcl",

examples/digitaloceancl-appspec.yaml  view on Meta::CPAN

- aliases:
  - d
  name: debug
  summary: debug
  type: flag
- aliases:
  - v
  name: verbose
  summary: verbose
  type: flag
subcommands:
  GET:
    op: apicall
    subcommands:
      /account:
        options: []
        parameters: []
        summary: Account information
      /droplets:
        options: []
        parameters: []
        summary: List all droplets
      /droplets/:id:
        options: []
        parameters:
        - name: id
          required: 1
          summary: ~
          type: integer
        summary: Retrieve a droplet by id
    summary: GET call
  POST:
    op: apicall
    subcommands:
      /droplets/:id/actions:
        options: []
        parameters: []
        summary: Trigger droplet action
    summary: POST call
summary: Unofficial DigitalOcean API specification
title: DigitalOcean API

examples/githubcl-appspec.yaml  view on Meta::CPAN

            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            site_admin:
              type: boolean
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        url:
          type: string
      type: object
    assetPatch:

examples/githubcl-appspec.yaml  view on Meta::CPAN

              organizations_url:
                type: string
              received_events_url:
                type: string
              repos_url:
                type: string
              site_admin:
                type: boolean
              starred_url:
                type: string
              subscriptions_url:
                type: string
              type:
                type: string
              url:
                type: string
            type: object
          url:
            type: string
        type: object
      type: array

examples/githubcl-appspec.yaml  view on Meta::CPAN

                organizations_url:
                  type: string
                received_events_url:
                  type: string
                repos_url:
                  type: string
                site_admin:
                  type: boolean
                starred_url:
                  type: string
                subscriptions_url:
                  type: string
                type:
                  type: string
                url:
                  type: string
              type: object
            commit:
              properties:
                author:
                  properties:

examples/githubcl-appspec.yaml  view on Meta::CPAN

                organizations_url:
                  type: string
                received_events_url:
                  type: string
                repos_url:
                  type: string
                site_admin:
                  type: boolean
                starred_url:
                  type: string
                subscriptions_url:
                  type: string
                type:
                  type: string
                url:
                  type: string
              type: object
            parents:
              items:
                properties:
                  sha:

examples/githubcl-appspec.yaml  view on Meta::CPAN

                  organizations_url:
                    type: string
                  received_events_url:
                    type: string
                  repos_url:
                    type: string
                  site_admin:
                    type: boolean
                  starred_url:
                    type: string
                  subscriptions_url:
                    type: string
                  type:
                    type: string
                  url:
                    type: string
                type: object
              commit:
                properties:
                  author:
                    properties:

examples/githubcl-appspec.yaml  view on Meta::CPAN

                  organizations_url:
                    type: string
                  received_events_url:
                    type: string
                  repos_url:
                    type: string
                  site_admin:
                    type: boolean
                  starred_url:
                    type: string
                  subscriptions_url:
                    type: string
                  type:
                    type: string
                  url:
                    type: string
                type: object
              parents:
                items:
                  properties:
                    sha:

examples/githubcl-appspec.yaml  view on Meta::CPAN

            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            site_admin:
              type: boolean
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        description:
          type: string
        id:
          type: integer

examples/githubcl-appspec.yaml  view on Meta::CPAN

              organizations_url:
                type: string
              received_events_url:
                type: string
              repos_url:
                type: string
              site_admin:
                type: boolean
              starred_url:
                type: string
              subscriptions_url:
                type: string
              type:
                type: string
              url:
                type: string
            type: object
          description:
            type: string
          id:
            type: integer

examples/githubcl-appspec.yaml  view on Meta::CPAN

            login:
              type: string
            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        comments_url:
          type: string
        commit:
          properties:

examples/githubcl-appspec.yaml  view on Meta::CPAN

            login:
              type: string
            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        merged:
          type: boolean
        message:
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

                login:
                  type: string
                url:
                  type: string
              type: object
            private:
              type: boolean
            url:
              type: string
          type: object
        subject:
          properties:
            latest_comment_url:
              type: string
            title:
              type: string
            type:
              type: string
            url:
              type: string
          type: object

examples/githubcl-appspec.yaml  view on Meta::CPAN

        type: integer
      type: array
    putSubscription:
      properties:
        created_at:
          type: string
        ignored:
          type: boolean
        reason:
          type: object
        subscribed:
          type: boolean
        thread_url:
          type: string
        url:
          type: string
      type: object
    rate_limit:
      properties:
        rate:
          properties:

examples/githubcl-appspec.yaml  view on Meta::CPAN

                  organizations_url:
                    type: string
                  received_events_url:
                    type: string
                  repos_url:
                    type: string
                  site_admin:
                    type: boolean
                  starred_url:
                    type: string
                  subscriptions_url:
                    type: string
                  type:
                    type: string
                  url:
                    type: string
                type: object
              url:
                type: string
            type: object
          type: array

examples/githubcl-appspec.yaml  view on Meta::CPAN

            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            site_admin:
              type: boolean
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        body:
          type: string
        created_at:
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

                    organizations_url:
                      type: string
                    received_events_url:
                      type: string
                    repos_url:
                      type: string
                    site_admin:
                      type: boolean
                    starred_url:
                      type: string
                    subscriptions_url:
                      type: string
                    type:
                      type: string
                    url:
                      type: string
                  type: object
                url:
                  type: string
              type: object
            type: array

examples/githubcl-appspec.yaml  view on Meta::CPAN

              organizations_url:
                type: string
              received_events_url:
                type: string
              repos_url:
                type: string
              site_admin:
                type: boolean
              starred_url:
                type: string
              subscriptions_url:
                type: string
              type:
                type: string
              url:
                type: string
            type: object
          body:
            type: string
          created_at:
            type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

              organizations_url:
                type: string
              received_events_url:
                type: string
              repos_url:
                type: string
              site_admin:
                type: boolean
              starred_url:
                type: string
              subscriptions_url:
                type: string
              type:
                type: string
              url:
                type: string
            type: object
          description:
            type: string
          id:
            type: integer

examples/githubcl-appspec.yaml  view on Meta::CPAN

                      login:
                        type: string
                      organizations_url:
                        type: string
                      received_events_url:
                        type: string
                      repos_url:
                        type: string
                      starred_url:
                        type: string
                      subscriptions_url:
                        type: string
                      type:
                        type: string
                      url:
                        type: string
                    type: object
                  private:
                    type: boolean
                  pulls_url:
                    type: string
                  stargazers_url:
                    type: string
                  statuses_url:
                    type: string
                  subscribers_url:
                    type: string
                  subscription_url:
                    type: string
                  tags_url:
                    type: string
                  teams_url:
                    type: string
                  trees_url:
                    type: string
                  url:
                    type: string
                type: object

examples/githubcl-appspec.yaml  view on Meta::CPAN

                  login:
                    type: string
                  organizations_url:
                    type: string
                  received_events_url:
                    type: string
                  repos_url:
                    type: string
                  starred_url:
                    type: string
                  subscriptions_url:
                    type: string
                  type:
                    type: string
                  url:
                    type: string
                type: object
            type: object
          type: array
        total_count:
          type: integer

examples/githubcl-appspec.yaml  view on Meta::CPAN

              login:
                type: string
              organizations_url:
                type: string
              received_events_url:
                type: string
              repos_url:
                type: string
              score:
                type: number
              subscriptions_url:
                type: string
              type:
                type: string
              url:
                type: string
            type: object
          type: array
        total_count:
          type: integer
      type: object

examples/githubcl-appspec.yaml  view on Meta::CPAN

          gravatar_id:
            type: string
          id:
            type: integer
          login:
            type: string
          url:
            type: string
        type: object
      type: array
    subscribition:
      properties:
        created_at:
          description: 'ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ'
          type: string
        ignored:
          type: boolean
        reason:
          type: string
        repository_url:
          type: string
        subscribed:
          type: boolean
        url:
          type: string
      type: object
    subscribitionBody:
      properties:
        ignored:
          type: boolean
        subscribed:
          type: boolean
      type: object
    subscription:
      properties:
        created_at:
          type: string
        ignored:
          type: boolean
        reason:
          type: boolean
        subscribed:
          type: boolean
        thread_url:
          type: string
        url:
          type: string
      type: object
    tag:
      properties:
        message:
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        base_tree:
          type: string
        sha:
          description: SHA1 checksum ID of the object in the tree.
          type: string
        tree:
          items:
            properties:
              mode:
                description: One of 100644 for file (blob), 100755 for executable
                  (blob), 040000 for subdirectory (tree), 160000 for submodule (commit)
                  or 120000 for a blob that specifies the path of a symlink.
                enum:
                - '100644'
                - '100755'
                - '040000'
                - '160000'
                - '120000'
                type: string
              path:
                type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        public_repos:
          type: integer
        type:
          type: string
        url:
          type: string
      type: object
    user-userId-starred:
      items: {}
      type: array
    user-userId-subscribitions:
      items:
        properties:
          clone_url:
            type: string
          created_at:
            description: 'ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ'
            type: string
          description:
            type: string
          fork:

examples/githubcl-appspec.yaml  view on Meta::CPAN

              for details.
    /issues:
      get:
        description: |
          List issues.
          List all issues across all the authenticated user's visible repositories.
        parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &1
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &2
          - open
          - closed
          in: query

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - in: header
          name: X-GitHub-Request-Id
          type: integer
        responses:
          '205':
            description: Thread marked as read.
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /notifications/threads/{id}/subscription:
      delete:
        description: Delete a Thread Subscription.
        parameters:
        - description: Id of thread.
          in: path
          name: id
          required: true
          type: integer
        - description: |
            You can check the current version of media type in responses.

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/subscription'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      put:
        description: |
          Set a Thread Subscription.
          This lets you subscribe to a thread, or ignore it. Subscribing to a thread
          is unnecessary if the user is already subscribed to the repository. Ignoring
          a thread will mute all future notifications (until you comment or get @mentioned).
        parameters:
        - description: Id of thread.
          in: path
          name: id
          required: true
          type: integer
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: integer
        - in: body
          name: body
          required: true
          schema:
            $ref: '#/definitions/putSubscription'
        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/subscription'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /orgs/{org}:
      get:
        description: Get an Organization.
        parameters:
        - description: Name of organisation.
          in: path

examples/githubcl-appspec.yaml  view on Meta::CPAN

          List all issues for a given organization for the authenticated user.
        parameters:
        - description: Name of organisation.
          in: path
          name: org
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &10
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &11
          - open
          - closed
          in: query

examples/githubcl-appspec.yaml  view on Meta::CPAN

              $ref: '#/definitions/deleteFile'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      get:
        description: |
          Get contents.
          This method returns the contents of a file or directory in a repository.
          Files and symlinks support a custom media type for getting the raw content.
          Directories and submodules do not support custom media types.
          Note: This API supports files up to 1 megabyte in size.
          Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/"
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-appspec.yaml  view on Meta::CPAN

              $ref: '#/definitions/hook'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /repos/{owner}/{repo}/hooks/{hookId}/tests:
      post:
        description: |
          Test a push hook.
          This will trigger the hook with the latest push to the current repository
          if the hook is subscribed to push events. If the hook is not subscribed
          to push events, the server will respond with 204 but no test POST will
          be generated.
          Note: Previously /repos/:owner/:repo/hooks/:id/tes
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.

examples/githubcl-appspec.yaml  view on Meta::CPAN

          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &16
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &17
          - open
          - closed
          in: query

examples/githubcl-appspec.yaml  view on Meta::CPAN

            $ref: '#/definitions/headBranch'
        responses:
          '201':
            description: Created
            schema:
              $ref: '#/definitions/ref'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /repos/{owner}/{repo}/subscribers:
      get:
        description: List watchers.
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: integer
        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/users'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /repos/{owner}/{repo}/subscription:
      delete:
        description: Delete a Repository Subscription.
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/subscribition'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      put:
        description: Set a Repository Subscription
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        - in: body
          name: body
          required: true
          schema:
            $ref: '#/definitions/subscribitionBody'
        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/subscribition'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /repos/{owner}/{repo}/tags:
      get:
        description: Get list of tags.
        parameters:
        - description: Name of repository owner.
          in: path

examples/githubcl-appspec.yaml  view on Meta::CPAN

    /user/issues:
      get:
        description: |
          List issues.
          List all issues across owned and member repositories for the authenticated
          user.
        parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &34
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &35
          - open
          - closed
          in: query

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - in: header
          name: X-GitHub-Request-Id
          type: integer
        responses:
          '204':
            description: Repository starred.
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /user/subscriptions:
      get:
        description: List repositories being watched by the authenticated user.
        parameters:
        - description: |
            You can check the current version of media type in responses.
          in: header
          name: X-GitHub-Media-Type
          type: string
        - description: Is used to set specified media type.
          in: header

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/user-userId-subscribitions'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /user/subscriptions/{owner}/{repo}:
      delete:
        description: Stop watching a repository
        parameters:
        - description: Name of the owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-appspec.yaml  view on Meta::CPAN

          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        responses:
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /users/{username}/subscriptions:
      get:
        description: List repositories being watched by a user.
        parameters:
        - description: Name of user.
          in: path
          name: username
          required: true
          type: string
        - description: |
            You can check the current version of media type in responses.

examples/githubcl-appspec.yaml  view on Meta::CPAN

- aliases:
  - d
  name: debug
  summary: debug
  type: flag
- aliases:
  - v
  name: verbose
  summary: verbose
  type: flag
subcommands:
  DELETE:
    op: apicall
    subcommands:
      /gists/:id:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of gist.
          type: integer
        summary: Delete a gist.
      /gists/:id/comments/:commentId:
        options: []

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: integer
        summary: Delete a comment.
      /gists/:id/star:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of gist.
          type: integer
        summary: Unstar a gist.
      /notifications/threads/:id/subscription:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of thread.
          type: integer
        summary: Delete a Thread Subscription.
      /orgs/:org/members/:username:
        options: []
        parameters:

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string
        - name: id
          required: 1
          summary: ~
          type: string
        summary: Delete a release asset
      /repos/:owner/:repo/subscription:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        parameters:
        - name: owner
          required: 1
          summary: Name of a repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of a repository.
          type: string
        summary: Unstar a repository
      /user/subscriptions/:owner/:repo:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of the owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string
        summary: Stop watching a repository
    summary: DELETE call
  GET:
    op: apicall
    subcommands:
      /emojis:
        options: []
        parameters: []
        summary: Lists all the emojis available to use on GitHub....
      /events:
        options: []
        parameters: []
        summary: List public events.
      /feeds:
        options: []

examples/githubcl-appspec.yaml  view on Meta::CPAN

          summary: ~
          type: string
        summary: Get a single template.
      /issues:
        options:
        - enum: *1
          name: q-filter
          required: 1
          summary: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          type: string
        - enum: *2
          name: q-state
          required: 1
          summary: ~
          type: string
        - name: q-labels
          required: 1
          summary: String list of comma separated Label names. Example - bug,ui,@high.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        parameters: []
        summary: List your notifications.
      /notifications/threads/:id:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of thread.
          type: integer
        summary: View a single thread.
      /notifications/threads/:id/subscription:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of thread.
          type: integer
        summary: Get a Thread Subscription.
      /orgs/:org:
        options: []
        parameters:

examples/githubcl-appspec.yaml  view on Meta::CPAN

          summary: Name of organisation.
          type: string
        summary: List public events for an organization....
      /orgs/:org/issues:
        options:
        - enum: *10
          name: q-filter
          required: 1
          summary: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          type: string
        - enum: *11
          name: q-state
          required: 1
          summary: ~
          type: string
        - name: q-labels
          required: 1
          summary: String list of comma separated Label names. Example - bug,ui,@high.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

          summary: Id of hook.
          type: integer
        summary: Get single hook.
      /repos/:owner/:repo/issues:
        options:
        - enum: *16
          name: q-filter
          required: 1
          summary: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          type: string
        - enum: *17
          name: q-state
          required: 1
          summary: ~
          type: string
        - name: q-labels
          required: 1
          summary: String list of comma separated Label names. Example - bug,ui,@high.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - name: repo
          required: 1
          summary: Name of repository.
          type: string
        - name: ref
          required: 1
          summary: |
            Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
          type: string
        summary: List Statuses for a specific Ref....
      /repos/:owner/:repo/subscribers:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string
        summary: List watchers.
      /repos/:owner/:repo/subscription:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

          summary: Name of user.
          type: string
        summary: Check if you are following a user....
      /user/issues:
        options:
        - enum: *34
          name: q-filter
          required: 1
          summary: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          type: string
        - enum: *35
          name: q-state
          required: 1
          summary: ~
          type: string
        - name: q-labels
          required: 1
          summary: String list of comma separated Label names. Example - bug,ui,@high.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        parameters:
        - name: owner
          required: 1
          summary: Name of a repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of a repository.
          type: string
        summary: Check if you are starring a repository....
      /user/subscriptions:
        options: []
        parameters: []
        summary: List repositories being watched by the authenticat...
      /user/subscriptions/:owner/:repo:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of the owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: string
        summary: List public repositories for the specified user....
      /users/:username/starred:
        options: []
        parameters:
        - name: username
          required: 1
          summary: Name of user.
          type: string
        summary: List repositories being starred by a user....
      /users/:username/subscriptions:
        options: []
        parameters:
        - name: username
          required: 1
          summary: Name of user.
          type: string
        summary: List repositories being watched by a user....
    summary: GET call
  PATCH:
    op: apicall
    subcommands:
      /gists/:id:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of gist.
          type: integer
        summary: Edit a gist.
      /gists/:id/comments/:commentId:
        options: []

examples/githubcl-appspec.yaml  view on Meta::CPAN

          summary: Id of team.
          type: integer
        summary: Edit team.
      /user:
        options: []
        parameters: []
        summary: Update the authenticated user.
    summary: PATCH call
  POST:
    op: apicall
    subcommands:
      /gists:
        options: []
        parameters: []
        summary: Create a gist.
      /gists/:id/comments:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of gist.

examples/githubcl-appspec.yaml  view on Meta::CPAN

        options: []
        parameters: []
        summary: Create a public key.
      /user/repos:
        options: []
        parameters: []
        summary: Create a new repository for the authenticated user...
    summary: POST call
  PUT:
    op: apicall
    subcommands:
      /gists/:id/star:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of gist.
          type: integer
        summary: Star a gist.
      /notifications:
        options: []
        parameters: []
        summary: Mark as read.
      /notifications/threads/:id/subscription:
        options: []
        parameters:
        - name: id
          required: 1
          summary: Id of thread.
          type: integer
        summary: Set a Thread Subscription.
      /orgs/:org/public_members/:username:
        options: []
        parameters:

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string
        - name: number
          required: 1
          summary: Id of pull.
          type: integer
        summary: Merge a pull request (Merge Button's)...
      /repos/:owner/:repo/subscription:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        parameters:
        - name: owner
          required: 1
          summary: Name of a repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of a repository.
          type: string
        summary: Star a repository.
      /user/subscriptions/:owner/:repo:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of the owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

            for details.
  /issues:
    get:
      description: |
        List issues.
        List all issues across all the authenticated user's visible repositories.
      parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - in: header
          name: X-GitHub-Request-Id
          type: integer
      responses:
        '205':
          description: Thread marked as read.
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/notifications/threads/{id}/subscription':
    delete:
      description: Delete a Thread Subscription.
      parameters:
        - description: Id of thread.
          in: path
          name: id
          required: true
          type: integer
        - description: |
            You can check the current version of media type in responses.

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/subscription'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    put:
      description: |
        Set a Thread Subscription.
        This lets you subscribe to a thread, or ignore it. Subscribing to a thread
        is unnecessary if the user is already subscribed to the repository. Ignoring
        a thread will mute all future notifications (until you comment or get @mentioned).
      parameters:
        - description: Id of thread.
          in: path
          name: id
          required: true
          type: integer
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-openapi.yaml  view on Meta::CPAN

          type: integer
        - in: body
          name: body
          required: true
          schema:
            $ref: '#/definitions/putSubscription'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/subscription'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/orgs/{org}':
    get:
      description: Get an Organization.
      parameters:
        - description: Name of organisation.
          in: path

examples/githubcl-openapi.yaml  view on Meta::CPAN

        List all issues for a given organization for the authenticated user.
      parameters:
        - description: Name of organisation.
          in: path
          name: org
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query

examples/githubcl-openapi.yaml  view on Meta::CPAN

            $ref: '#/definitions/deleteFile'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    get:
      description: |
        Get contents.
        This method returns the contents of a file or directory in a repository.
        Files and symlinks support a custom media type for getting the raw content.
        Directories and submodules do not support custom media types.
        Note: This API supports files up to 1 megabyte in size.
        Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/"
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-openapi.yaml  view on Meta::CPAN

            $ref: '#/definitions/hook'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/repos/{owner}/{repo}/hooks/{hookId}/tests':
    post:
      description: |
        Test a push hook.
        This will trigger the hook with the latest push to the current repository
        if the hook is subscribed to push events. If the hook is not subscribed
        to push events, the server will respond with 204 but no test POST will
        be generated.
        Note: Previously /repos/:owner/:repo/hooks/:id/tes
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.

examples/githubcl-openapi.yaml  view on Meta::CPAN

          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query

examples/githubcl-openapi.yaml  view on Meta::CPAN

            $ref: '#/definitions/headBranch'
      responses:
        '201':
          description: Created
          schema:
            $ref: '#/definitions/ref'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/repos/{owner}/{repo}/subscribers':
    get:
      description: List watchers.
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-openapi.yaml  view on Meta::CPAN

          type: integer
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/users'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/repos/{owner}/{repo}/subscription':
    delete:
      description: Delete a Repository Subscription.
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/subscribition'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    put:
      description: Set a Repository Subscription
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        - in: body
          name: body
          required: true
          schema:
            $ref: '#/definitions/subscribitionBody'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/subscribition'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/repos/{owner}/{repo}/tags':
    get:
      description: Get list of tags.
      parameters:
        - description: Name of repository owner.
          in: path

examples/githubcl-openapi.yaml  view on Meta::CPAN

  /user/issues:
    get:
      description: |
        List issues.
        List all issues across owned and member repositories for the authenticated
        user.
      parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - in: header
          name: X-GitHub-Request-Id
          type: integer
      responses:
        '204':
          description: Repository starred.
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /user/subscriptions:
    get:
      description: List repositories being watched by the authenticated user.
      parameters:
        - description: |
            You can check the current version of media type in responses.
          in: header
          name: X-GitHub-Media-Type
          type: string
        - description: Is used to set specified media type.
          in: header

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/user-userId-subscribitions'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/user/subscriptions/{owner}/{repo}':
    delete:
      description: Stop watching a repository
      parameters:
        - description: Name of the owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path

examples/githubcl-openapi.yaml  view on Meta::CPAN

          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
      responses:
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/users/{username}/subscriptions':
    get:
      description: List repositories being watched by a user.
      parameters:
        - description: Name of user.
          in: path
          name: username
          required: true
          type: string
        - description: |
            You can check the current version of media type in responses.

examples/githubcl-openapi.yaml  view on Meta::CPAN

          organizations_url:
            type: string
          received_events_url:
            type: string
          repos_url:
            type: string
          site_admin:
            type: boolean
          starred_url:
            type: string
          subscriptions_url:
            type: string
          type:
            type: string
          url:
            type: string
        type: object
      url:
        type: string
    type: object
  assetPatch:

examples/githubcl-openapi.yaml  view on Meta::CPAN

            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            site_admin:
              type: boolean
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        url:
          type: string
      type: object
    type: array

examples/githubcl-openapi.yaml  view on Meta::CPAN

              organizations_url:
                type: string
              received_events_url:
                type: string
              repos_url:
                type: string
              site_admin:
                type: boolean
              starred_url:
                type: string
              subscriptions_url:
                type: string
              type:
                type: string
              url:
                type: string
            type: object
          commit:
            properties:
              author:
                properties:

examples/githubcl-openapi.yaml  view on Meta::CPAN

              organizations_url:
                type: string
              received_events_url:
                type: string
              repos_url:
                type: string
              site_admin:
                type: boolean
              starred_url:
                type: string
              subscriptions_url:
                type: string
              type:
                type: string
              url:
                type: string
            type: object
          parents:
            items:
              properties:
                sha:

examples/githubcl-openapi.yaml  view on Meta::CPAN

                organizations_url:
                  type: string
                received_events_url:
                  type: string
                repos_url:
                  type: string
                site_admin:
                  type: boolean
                starred_url:
                  type: string
                subscriptions_url:
                  type: string
                type:
                  type: string
                url:
                  type: string
              type: object
            commit:
              properties:
                author:
                  properties:

examples/githubcl-openapi.yaml  view on Meta::CPAN

                organizations_url:
                  type: string
                received_events_url:
                  type: string
                repos_url:
                  type: string
                site_admin:
                  type: boolean
                starred_url:
                  type: string
                subscriptions_url:
                  type: string
                type:
                  type: string
                url:
                  type: string
              type: object
            parents:
              items:
                properties:
                  sha:

examples/githubcl-openapi.yaml  view on Meta::CPAN

          organizations_url:
            type: string
          received_events_url:
            type: string
          repos_url:
            type: string
          site_admin:
            type: boolean
          starred_url:
            type: string
          subscriptions_url:
            type: string
          type:
            type: string
          url:
            type: string
        type: object
      description:
        type: string
      id:
        type: integer

examples/githubcl-openapi.yaml  view on Meta::CPAN

            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            site_admin:
              type: boolean
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        description:
          type: string
        id:
          type: integer

examples/githubcl-openapi.yaml  view on Meta::CPAN

          login:
            type: string
          organizations_url:
            type: string
          received_events_url:
            type: string
          repos_url:
            type: string
          starred_url:
            type: string
          subscriptions_url:
            type: string
          type:
            type: string
          url:
            type: string
        type: object
      comments_url:
        type: string
      commit:
        properties:

examples/githubcl-openapi.yaml  view on Meta::CPAN

          login:
            type: string
          organizations_url:
            type: string
          received_events_url:
            type: string
          repos_url:
            type: string
          starred_url:
            type: string
          subscriptions_url:
            type: string
          type:
            type: string
          url:
            type: string
        type: object
      merged:
        type: boolean
      message:
        type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

              login:
                type: string
              url:
                type: string
            type: object
          private:
            type: boolean
          url:
            type: string
        type: object
      subject:
        properties:
          latest_comment_url:
            type: string
          title:
            type: string
          type:
            type: string
          url:
            type: string
        type: object

examples/githubcl-openapi.yaml  view on Meta::CPAN

      type: integer
    type: array
  putSubscription:
    properties:
      created_at:
        type: string
      ignored:
        type: boolean
      reason:
        type: object
      subscribed:
        type: boolean
      thread_url:
        type: string
      url:
        type: string
    type: object
  rate_limit:
    properties:
      rate:
        properties:

examples/githubcl-openapi.yaml  view on Meta::CPAN

                organizations_url:
                  type: string
                received_events_url:
                  type: string
                repos_url:
                  type: string
                site_admin:
                  type: boolean
                starred_url:
                  type: string
                subscriptions_url:
                  type: string
                type:
                  type: string
                url:
                  type: string
              type: object
            url:
              type: string
          type: object
        type: array

examples/githubcl-openapi.yaml  view on Meta::CPAN

          organizations_url:
            type: string
          received_events_url:
            type: string
          repos_url:
            type: string
          site_admin:
            type: boolean
          starred_url:
            type: string
          subscriptions_url:
            type: string
          type:
            type: string
          url:
            type: string
        type: object
      body:
        type: string
      created_at:
        type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

                  organizations_url:
                    type: string
                  received_events_url:
                    type: string
                  repos_url:
                    type: string
                  site_admin:
                    type: boolean
                  starred_url:
                    type: string
                  subscriptions_url:
                    type: string
                  type:
                    type: string
                  url:
                    type: string
                type: object
              url:
                type: string
            type: object
          type: array

examples/githubcl-openapi.yaml  view on Meta::CPAN

            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            site_admin:
              type: boolean
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        body:
          type: string
        created_at:
          type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            site_admin:
              type: boolean
            starred_url:
              type: string
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        description:
          type: string
        id:
          type: integer

examples/githubcl-openapi.yaml  view on Meta::CPAN

                    login:
                      type: string
                    organizations_url:
                      type: string
                    received_events_url:
                      type: string
                    repos_url:
                      type: string
                    starred_url:
                      type: string
                    subscriptions_url:
                      type: string
                    type:
                      type: string
                    url:
                      type: string
                  type: object
                private:
                  type: boolean
                pulls_url:
                  type: string
                stargazers_url:
                  type: string
                statuses_url:
                  type: string
                subscribers_url:
                  type: string
                subscription_url:
                  type: string
                tags_url:
                  type: string
                teams_url:
                  type: string
                trees_url:
                  type: string
                url:
                  type: string
              type: object

examples/githubcl-openapi.yaml  view on Meta::CPAN

                login:
                  type: string
                organizations_url:
                  type: string
                received_events_url:
                  type: string
                repos_url:
                  type: string
                starred_url:
                  type: string
                subscriptions_url:
                  type: string
                type:
                  type: string
                url:
                  type: string
              type: object
          type: object
        type: array
      total_count:
        type: integer

examples/githubcl-openapi.yaml  view on Meta::CPAN

            login:
              type: string
            organizations_url:
              type: string
            received_events_url:
              type: string
            repos_url:
              type: string
            score:
              type: number
            subscriptions_url:
              type: string
            type:
              type: string
            url:
              type: string
          type: object
        type: array
      total_count:
        type: integer
    type: object

examples/githubcl-openapi.yaml  view on Meta::CPAN

        gravatar_id:
          type: string
        id:
          type: integer
        login:
          type: string
        url:
          type: string
      type: object
    type: array
  subscribition:
    properties:
      created_at:
        description: 'ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ'
        type: string
      ignored:
        type: boolean
      reason:
        type: string
      repository_url:
        type: string
      subscribed:
        type: boolean
      url:
        type: string
    type: object
  subscribitionBody:
    properties:
      ignored:
        type: boolean
      subscribed:
        type: boolean
    type: object
  subscription:
    properties:
      created_at:
        type: string
      ignored:
        type: boolean
      reason:
        type: boolean
      subscribed:
        type: boolean
      thread_url:
        type: string
      url:
        type: string
    type: object
  tag:
    properties:
      message:
        type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

    properties:
      base_tree:
        type: string
      sha:
        description: SHA1 checksum ID of the object in the tree.
        type: string
      tree:
        items:
          properties:
            mode:
              description: 'One of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit) or 120000 for a blob that specifies the path of a symlink.'
              enum:
                - '100644'
                - '100755'
                - '040000'
                - '160000'
                - '120000'
              type: string
            path:
              type: string
            sha:

examples/githubcl-openapi.yaml  view on Meta::CPAN

      public_repos:
        type: integer
      type:
        type: string
      url:
        type: string
    type: object
  user-userId-starred:
    items: {}
    type: array
  user-userId-subscribitions:
    items:
      properties:
        clone_url:
          type: string
        created_at:
          description: 'ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ'
          type: string
        description:
          type: string
        fork:

examples/html/digitaloceancl.html  view on Meta::CPAN


<pre><code>    --data-file     File with data for POST/PUT/PATCH/DELETE requests
    --debug -d      debug (flag)                                     
    --verbose -v    verbose (flag)                                   
    --help -h       Show command help (flag)                         </code></pre>

<h2 id="SUBCOMMANDS">SUBCOMMANDS</h2>

<h3 id="GET">GET</h3>

<pre><code>    digitaloceancl  GET &lt;subcommands&gt;</code></pre>

<p>GET call</p>

<h3 id="GET-account">GET /account</h3>

<pre><code>    digitaloceancl GET /account</code></pre>

<p>Account information</p>

<h3 id="GET-droplets">GET /droplets</h3>

examples/html/digitaloceancl.html  view on Meta::CPAN

<pre><code>    digitaloceancl GET /droplets/:id &lt;id&gt;</code></pre>

<p>Retrieve a droplet by id</p>

<p>Parameters:</p>

<pre><code>    id  *  </code></pre>

<h3 id="POST">POST</h3>

<pre><code>    digitaloceancl  POST &lt;subcommands&gt;</code></pre>

<p>POST call</p>

<h3 id="POST-droplets-:id-actions">POST /droplets/:id/actions</h3>

<pre><code>    digitaloceancl POST /droplets/:id/actions</code></pre>

<p>Trigger droplet action</p>

<h3 id="help">help</h3>

<pre><code>    digitaloceancl  help &lt;subcommands&gt; [options]</code></pre>

<p>Show command help</p>

<p>Options:</p>

<pre><code>    --all     (flag)</code></pre>

<h3 id="meta">_meta</h3>

<pre><code>    digitaloceancl  _meta &lt;subcommands&gt;</code></pre>

<p>Information and utilities for this app</p>

<h3 id="meta-completion">_meta completion</h3>

<pre><code>    digitaloceancl _meta completion &lt;subcommands&gt;</code></pre>

<p>Shell completion functions</p>

<h3 id="meta-completion-generate">_meta completion generate</h3>

<pre><code>    digitaloceancl _meta completion generate [options]</code></pre>

<p>Generate self completion</p>

<p>Options:</p>

<pre><code>    --name    name of the program (optional, override name in spec)
    --zsh     for zsh (flag)                                       
    --bash    for bash (flag)                                      </code></pre>

<h3 id="meta-pod">_meta pod</h3>

<pre><code>    digitaloceancl _meta pod &lt;subcommands&gt;</code></pre>

<p>Pod documentation</p>

<h3 id="meta-pod-generate">_meta pod generate</h3>

<pre><code>    digitaloceancl _meta pod generate</code></pre>

<p>Generate self pod</p>


examples/html/githubcl.html  view on Meta::CPAN

  <li><a href="#ABSTRACT">ABSTRACT</a></li>
  <li><a href="#DESCRIPTION">DESCRIPTION</a>
    <ul>
      <li><a href="#GLOBAL-OPTIONS">GLOBAL OPTIONS</a></li>
      <li><a href="#SUBCOMMANDS">SUBCOMMANDS</a>
        <ul>
          <li><a href="#DELETE">DELETE</a></li>
          <li><a href="#DELETE-gists-:id">DELETE /gists/:id</a></li>
          <li><a href="#DELETE-gists-:id-comments-:commentId">DELETE /gists/:id/comments/:commentId</a></li>
          <li><a href="#DELETE-gists-:id-star">DELETE /gists/:id/star</a></li>
          <li><a href="#DELETE-notifications-threads-:id-subscription">DELETE /notifications/threads/:id/subscription</a></li>
          <li><a href="#DELETE-orgs-:org-members-:username">DELETE /orgs/:org/members/:username</a></li>
          <li><a href="#DELETE-orgs-:org-public_members-:username">DELETE /orgs/:org/public_members/:username</a></li>
          <li><a href="#DELETE-repos-:owner-:repo">DELETE /repos/:owner/:repo</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-collaborators-:user">DELETE /repos/:owner/:repo/collaborators/:user</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-comments-:commentId">DELETE /repos/:owner/:repo/comments/:commentId</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-contents-:path">DELETE /repos/:owner/:repo/contents/:path</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-downloads-:downloadId">DELETE /repos/:owner/:repo/downloads/:downloadId</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-git-refs-:ref">DELETE /repos/:owner/:repo/git/refs/:ref</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-hooks-:hookId">DELETE /repos/:owner/:repo/hooks/:hookId</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-issues-:number-labels">DELETE /repos/:owner/:repo/issues/:number/labels</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-issues-:number-labels-:name">DELETE /repos/:owner/:repo/issues/:number/labels/:name</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-issues-comments-:commentId">DELETE /repos/:owner/:repo/issues/comments/:commentId</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-keys-:keyId">DELETE /repos/:owner/:repo/keys/:keyId</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-labels-:name">DELETE /repos/:owner/:repo/labels/:name</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-milestones-:number">DELETE /repos/:owner/:repo/milestones/:number</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-pulls-comments-:commentId">DELETE /repos/:owner/:repo/pulls/comments/:commentId</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-releases-:id">DELETE /repos/:owner/:repo/releases/:id</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-releases-assets-:id">DELETE /repos/:owner/:repo/releases/assets/:id</a></li>
          <li><a href="#DELETE-repos-:owner-:repo-subscription">DELETE /repos/:owner/:repo/subscription</a></li>
          <li><a href="#DELETE-teams-:teamId">DELETE /teams/:teamId</a></li>
          <li><a href="#DELETE-teams-:teamId-members-:username">DELETE /teams/:teamId/members/:username</a></li>
          <li><a href="#DELETE-teams-:teamId-memberships-:username">DELETE /teams/:teamId/memberships/:username</a></li>
          <li><a href="#DELETE-teams-:teamId-repos-:owner-:repo">DELETE /teams/:teamId/repos/:owner/:repo</a></li>
          <li><a href="#DELETE-user-emails">DELETE /user/emails</a></li>
          <li><a href="#DELETE-user-following-:username">DELETE /user/following/:username</a></li>
          <li><a href="#DELETE-user-keys-:keyId">DELETE /user/keys/:keyId</a></li>
          <li><a href="#DELETE-user-starred-:owner-:repo">DELETE /user/starred/:owner/:repo</a></li>
          <li><a href="#DELETE-user-subscriptions-:owner-:repo">DELETE /user/subscriptions/:owner/:repo</a></li>
          <li><a href="#GET">GET</a></li>
          <li><a href="#GET-emojis">GET /emojis</a></li>
          <li><a href="#GET-events">GET /events</a></li>
          <li><a href="#GET-feeds">GET /feeds</a></li>
          <li><a href="#GET-gists">GET /gists</a></li>
          <li><a href="#GET-gists-:id">GET /gists/:id</a></li>
          <li><a href="#GET-gists-:id-comments">GET /gists/:id/comments</a></li>
          <li><a href="#GET-gists-:id-comments-:commentId">GET /gists/:id/comments/:commentId</a></li>
          <li><a href="#GET-gists-:id-star">GET /gists/:id/star</a></li>
          <li><a href="#GET-gists-public">GET /gists/public</a></li>

examples/html/githubcl.html  view on Meta::CPAN

          <li><a href="#GET-gitignore-templates-:language">GET /gitignore/templates/:language</a></li>
          <li><a href="#GET-issues">GET /issues</a></li>
          <li><a href="#GET-legacy-issues-search-:owner-:repository-:state-:keyword">GET /legacy/issues/search/:owner/:repository/:state/:keyword</a></li>
          <li><a href="#GET-legacy-repos-search-:keyword">GET /legacy/repos/search/:keyword</a></li>
          <li><a href="#GET-legacy-user-email-:email">GET /legacy/user/email/:email</a></li>
          <li><a href="#GET-legacy-user-search-:keyword">GET /legacy/user/search/:keyword</a></li>
          <li><a href="#GET-meta">GET /meta</a></li>
          <li><a href="#GET-networks-:owner-:repo-events">GET /networks/:owner/:repo/events</a></li>
          <li><a href="#GET-notifications">GET /notifications</a></li>
          <li><a href="#GET-notifications-threads-:id">GET /notifications/threads/:id</a></li>
          <li><a href="#GET-notifications-threads-:id-subscription">GET /notifications/threads/:id/subscription</a></li>
          <li><a href="#GET-orgs-:org">GET /orgs/:org</a></li>
          <li><a href="#GET-orgs-:org-events">GET /orgs/:org/events</a></li>
          <li><a href="#GET-orgs-:org-issues">GET /orgs/:org/issues</a></li>
          <li><a href="#GET-orgs-:org-members">GET /orgs/:org/members</a></li>
          <li><a href="#GET-orgs-:org-members-:username">GET /orgs/:org/members/:username</a></li>
          <li><a href="#GET-orgs-:org-public_members">GET /orgs/:org/public_members</a></li>
          <li><a href="#GET-orgs-:org-public_members-:username">GET /orgs/:org/public_members/:username</a></li>
          <li><a href="#GET-orgs-:org-repos">GET /orgs/:org/repos</a></li>
          <li><a href="#GET-orgs-:org-teams">GET /orgs/:org/teams</a></li>
          <li><a href="#GET-rate_limit">GET /rate_limit</a></li>

examples/html/githubcl.html  view on Meta::CPAN

          <li><a href="#GET-repos-:owner-:repo-releases-:id">GET /repos/:owner/:repo/releases/:id</a></li>
          <li><a href="#GET-repos-:owner-:repo-releases-:id-assets">GET /repos/:owner/:repo/releases/:id/assets</a></li>
          <li><a href="#GET-repos-:owner-:repo-releases-assets-:id">GET /repos/:owner/:repo/releases/assets/:id</a></li>
          <li><a href="#GET-repos-:owner-:repo-stargazers">GET /repos/:owner/:repo/stargazers</a></li>
          <li><a href="#GET-repos-:owner-:repo-stats-code_frequency">GET /repos/:owner/:repo/stats/code_frequency</a></li>
          <li><a href="#GET-repos-:owner-:repo-stats-commit_activity">GET /repos/:owner/:repo/stats/commit_activity</a></li>
          <li><a href="#GET-repos-:owner-:repo-stats-contributors">GET /repos/:owner/:repo/stats/contributors</a></li>
          <li><a href="#GET-repos-:owner-:repo-stats-participation">GET /repos/:owner/:repo/stats/participation</a></li>
          <li><a href="#GET-repos-:owner-:repo-stats-punch_card">GET /repos/:owner/:repo/stats/punch_card</a></li>
          <li><a href="#GET-repos-:owner-:repo-statuses-:ref">GET /repos/:owner/:repo/statuses/:ref</a></li>
          <li><a href="#GET-repos-:owner-:repo-subscribers">GET /repos/:owner/:repo/subscribers</a></li>
          <li><a href="#GET-repos-:owner-:repo-subscription">GET /repos/:owner/:repo/subscription</a></li>
          <li><a href="#GET-repos-:owner-:repo-tags">GET /repos/:owner/:repo/tags</a></li>
          <li><a href="#GET-repos-:owner-:repo-teams">GET /repos/:owner/:repo/teams</a></li>
          <li><a href="#GET-repos-:owner-:repo-watchers">GET /repos/:owner/:repo/watchers</a></li>
          <li><a href="#GET-repositories">GET /repositories</a></li>
          <li><a href="#GET-search-code">GET /search/code</a></li>
          <li><a href="#GET-search-issues">GET /search/issues</a></li>
          <li><a href="#GET-search-repositories">GET /search/repositories</a></li>
          <li><a href="#GET-search-users">GET /search/users</a></li>
          <li><a href="#GET-teams-:teamId">GET /teams/:teamId</a></li>
          <li><a href="#GET-teams-:teamId-members">GET /teams/:teamId/members</a></li>

examples/html/githubcl.html  view on Meta::CPAN

          <li><a href="#GET-user-followers">GET /user/followers</a></li>
          <li><a href="#GET-user-following">GET /user/following</a></li>
          <li><a href="#GET-user-following-:username">GET /user/following/:username</a></li>
          <li><a href="#GET-user-issues">GET /user/issues</a></li>
          <li><a href="#GET-user-keys">GET /user/keys</a></li>
          <li><a href="#GET-user-keys-:keyId">GET /user/keys/:keyId</a></li>
          <li><a href="#GET-user-orgs">GET /user/orgs</a></li>
          <li><a href="#GET-user-repos">GET /user/repos</a></li>
          <li><a href="#GET-user-starred">GET /user/starred</a></li>
          <li><a href="#GET-user-starred-:owner-:repo">GET /user/starred/:owner/:repo</a></li>
          <li><a href="#GET-user-subscriptions">GET /user/subscriptions</a></li>
          <li><a href="#GET-user-subscriptions-:owner-:repo">GET /user/subscriptions/:owner/:repo</a></li>
          <li><a href="#GET-user-teams">GET /user/teams</a></li>
          <li><a href="#GET-users">GET /users</a></li>
          <li><a href="#GET-users-:username">GET /users/:username</a></li>
          <li><a href="#GET-users-:username-events">GET /users/:username/events</a></li>
          <li><a href="#GET-users-:username-events-orgs-:org">GET /users/:username/events/orgs/:org</a></li>
          <li><a href="#GET-users-:username-followers">GET /users/:username/followers</a></li>
          <li><a href="#GET-users-:username-following-:targetUser">GET /users/:username/following/:targetUser</a></li>
          <li><a href="#GET-users-:username-gists">GET /users/:username/gists</a></li>
          <li><a href="#GET-users-:username-keys">GET /users/:username/keys</a></li>
          <li><a href="#GET-users-:username-orgs">GET /users/:username/orgs</a></li>
          <li><a href="#GET-users-:username-received_events">GET /users/:username/received_events</a></li>
          <li><a href="#GET-users-:username-received_events-public">GET /users/:username/received_events/public</a></li>
          <li><a href="#GET-users-:username-repos">GET /users/:username/repos</a></li>
          <li><a href="#GET-users-:username-starred">GET /users/:username/starred</a></li>
          <li><a href="#GET-users-:username-subscriptions">GET /users/:username/subscriptions</a></li>
          <li><a href="#PATCH">PATCH</a></li>
          <li><a href="#PATCH-gists-:id">PATCH /gists/:id</a></li>
          <li><a href="#PATCH-gists-:id-comments-:commentId">PATCH /gists/:id/comments/:commentId</a></li>
          <li><a href="#PATCH-notifications-threads-:id">PATCH /notifications/threads/:id</a></li>
          <li><a href="#PATCH-orgs-:org">PATCH /orgs/:org</a></li>
          <li><a href="#PATCH-repos-:owner-:repo">PATCH /repos/:owner/:repo</a></li>
          <li><a href="#PATCH-repos-:owner-:repo-comments-:commentId">PATCH /repos/:owner/:repo/comments/:commentId</a></li>
          <li><a href="#PATCH-repos-:owner-:repo-git-refs-:ref">PATCH /repos/:owner/:repo/git/refs/:ref</a></li>
          <li><a href="#PATCH-repos-:owner-:repo-hooks-:hookId">PATCH /repos/:owner/:repo/hooks/:hookId</a></li>
          <li><a href="#PATCH-repos-:owner-:repo-issues-:number">PATCH /repos/:owner/:repo/issues/:number</a></li>

examples/html/githubcl.html  view on Meta::CPAN

          <li><a href="#POST-repos-:owner-:repo-pulls">POST /repos/:owner/:repo/pulls</a></li>
          <li><a href="#POST-repos-:owner-:repo-pulls-:number-comments">POST /repos/:owner/:repo/pulls/:number/comments</a></li>
          <li><a href="#POST-repos-:owner-:repo-releases">POST /repos/:owner/:repo/releases</a></li>
          <li><a href="#POST-repos-:owner-:repo-statuses-:ref">POST /repos/:owner/:repo/statuses/:ref</a></li>
          <li><a href="#POST-user-emails">POST /user/emails</a></li>
          <li><a href="#POST-user-keys">POST /user/keys</a></li>
          <li><a href="#POST-user-repos">POST /user/repos</a></li>
          <li><a href="#PUT">PUT</a></li>
          <li><a href="#PUT-gists-:id-star">PUT /gists/:id/star</a></li>
          <li><a href="#PUT-notifications">PUT /notifications</a></li>
          <li><a href="#PUT-notifications-threads-:id-subscription">PUT /notifications/threads/:id/subscription</a></li>
          <li><a href="#PUT-orgs-:org-public_members-:username">PUT /orgs/:org/public_members/:username</a></li>
          <li><a href="#PUT-repos-:owner-:repo-collaborators-:user">PUT /repos/:owner/:repo/collaborators/:user</a></li>
          <li><a href="#PUT-repos-:owner-:repo-contents-:path">PUT /repos/:owner/:repo/contents/:path</a></li>
          <li><a href="#PUT-repos-:owner-:repo-issues-:number-labels">PUT /repos/:owner/:repo/issues/:number/labels</a></li>
          <li><a href="#PUT-repos-:owner-:repo-notifications">PUT /repos/:owner/:repo/notifications</a></li>
          <li><a href="#PUT-repos-:owner-:repo-pulls-:number-merge">PUT /repos/:owner/:repo/pulls/:number/merge</a></li>
          <li><a href="#PUT-repos-:owner-:repo-subscription">PUT /repos/:owner/:repo/subscription</a></li>
          <li><a href="#PUT-teams-:teamId-members-:username">PUT /teams/:teamId/members/:username</a></li>
          <li><a href="#PUT-teams-:teamId-memberships-:username">PUT /teams/:teamId/memberships/:username</a></li>
          <li><a href="#PUT-teams-:teamId-repos-:org-:repo">PUT /teams/:teamId/repos/:org/:repo</a></li>
          <li><a href="#PUT-user-following-:username">PUT /user/following/:username</a></li>
          <li><a href="#PUT-user-starred-:owner-:repo">PUT /user/starred/:owner/:repo</a></li>
          <li><a href="#PUT-user-subscriptions-:owner-:repo">PUT /user/subscriptions/:owner/:repo</a></li>
          <li><a href="#help">help</a></li>
          <li><a href="#meta">_meta</a></li>
          <li><a href="#meta-completion">_meta completion</a></li>
          <li><a href="#meta-completion-generate">_meta completion generate</a></li>
          <li><a href="#meta-pod">_meta pod</a></li>
          <li><a href="#meta-pod-generate">_meta pod generate</a></li>
        </ul>
      </li>
    </ul>
  </li>

examples/html/githubcl.html  view on Meta::CPAN


<pre><code>    --data-file     File with data for POST/PUT/PATCH/DELETE requests
    --debug -d      debug (flag)                                     
    --verbose -v    verbose (flag)                                   
    --help -h       Show command help (flag)                         </code></pre>

<h2 id="SUBCOMMANDS">SUBCOMMANDS</h2>

<h3 id="DELETE">DELETE</h3>

<pre><code>    githubcl  DELETE &lt;subcommands&gt;</code></pre>

<p>DELETE call</p>

<h3 id="DELETE-gists-:id">DELETE /gists/:id</h3>

<pre><code>    githubcl DELETE /gists/:id &lt;id&gt;</code></pre>

<p>Delete a gist.</p>

<p>Parameters:</p>

examples/html/githubcl.html  view on Meta::CPAN

<h3 id="DELETE-gists-:id-star">DELETE /gists/:id/star</h3>

<pre><code>    githubcl DELETE /gists/:id/star &lt;id&gt;</code></pre>

<p>Unstar a gist.</p>

<p>Parameters:</p>

<pre><code>    id  *  Id of gist.</code></pre>

<h3 id="DELETE-notifications-threads-:id-subscription">DELETE /notifications/threads/:id/subscription</h3>

<pre><code>    githubcl DELETE /notifications/threads/:id/subscription &lt;id&gt;</code></pre>

<p>Delete a Thread Subscription.</p>

<p>Parameters:</p>

<pre><code>    id  *  Id of thread.</code></pre>

<h3 id="DELETE-orgs-:org-members-:username">DELETE /orgs/:org/members/:username</h3>

<pre><code>    githubcl DELETE /orgs/:org/members/:username &lt;org&gt; &lt;username&gt;</code></pre>

examples/html/githubcl.html  view on Meta::CPAN

<pre><code>    githubcl DELETE /repos/:owner/:repo/releases/assets/:id &lt;owner&gt; &lt;repo&gt; &lt;id&gt;</code></pre>

<p>Delete a release asset</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.
    repo   *  Name of repository.      
    id     *                           </code></pre>

<h3 id="DELETE-repos-:owner-:repo-subscription">DELETE /repos/:owner/:repo/subscription</h3>

<pre><code>    githubcl DELETE /repos/:owner/:repo/subscription &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Delete a Repository Subscription....</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.
    repo   *  Name of repository.      </code></pre>

<h3 id="DELETE-teams-:teamId">DELETE /teams/:teamId</h3>

examples/html/githubcl.html  view on Meta::CPAN


<pre><code>    githubcl DELETE /user/starred/:owner/:repo &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Unstar a repository</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of a repository owner.
    repo   *  Name of a repository.      </code></pre>

<h3 id="DELETE-user-subscriptions-:owner-:repo">DELETE /user/subscriptions/:owner/:repo</h3>

<pre><code>    githubcl DELETE /user/subscriptions/:owner/:repo &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Stop watching a repository</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of the owner. 
    repo   *  Name of repository.</code></pre>

<h3 id="GET">GET</h3>

<pre><code>    githubcl  GET &lt;subcommands&gt;</code></pre>

<p>GET call</p>

<h3 id="GET-emojis">GET /emojis</h3>

<pre><code>    githubcl GET /emojis</code></pre>

<p>Lists all the emojis available to use on GitHub....</p>

<h3 id="GET-events">GET /events</h3>

examples/html/githubcl.html  view on Meta::CPAN


<h3 id="GET-issues">GET /issues</h3>

<pre><code>    githubcl GET /issues [options]</code></pre>

<p>List issues.</p>

<p>Options:</p>

<pre><code>    --q-filter     *  Issues assigned to you / created by you / mentioning you / you&#39;re       
                      subscribed to updates for / All issues the authenticated user can see   
    --q-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 </code></pre>

<h3 id="GET-legacy-issues-search-:owner-:repository-:state-:keyword">GET /legacy/issues/search/:owner/:repository/:state/:keyword</h3>

<pre><code>    githubcl GET /legacy/issues/search/:owner/:repository/:state/:keyword &lt;keyword&gt; &lt;state&gt; &lt;owner&gt; &lt;repository&gt;</code></pre>

examples/html/githubcl.html  view on Meta::CPAN

<h3 id="GET-notifications-threads-:id">GET /notifications/threads/:id</h3>

<pre><code>    githubcl GET /notifications/threads/:id &lt;id&gt;</code></pre>

<p>View a single thread.</p>

<p>Parameters:</p>

<pre><code>    id  *  Id of thread.</code></pre>

<h3 id="GET-notifications-threads-:id-subscription">GET /notifications/threads/:id/subscription</h3>

<pre><code>    githubcl GET /notifications/threads/:id/subscription &lt;id&gt;</code></pre>

<p>Get a Thread Subscription.</p>

<p>Parameters:</p>

<pre><code>    id  *  Id of thread.</code></pre>

<h3 id="GET-orgs-:org">GET /orgs/:org</h3>

<pre><code>    githubcl GET /orgs/:org &lt;org&gt;</code></pre>

examples/html/githubcl.html  view on Meta::CPAN


<h3 id="GET-orgs-:org-issues">GET /orgs/:org/issues</h3>

<pre><code>    githubcl GET /orgs/:org/issues [options] &lt;org&gt;</code></pre>

<p>List issues.</p>

<p>Options:</p>

<pre><code>    --q-filter     *  Issues assigned to you / created by you / mentioning you / you&#39;re       
                      subscribed to updates for / All issues the authenticated user can see   
    --q-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 </code></pre>

<p>Parameters:</p>

<pre><code>    org  *  Name of organisation.</code></pre>

examples/html/githubcl.html  view on Meta::CPAN


<h3 id="GET-repos-:owner-:repo-issues">GET /repos/:owner/:repo/issues</h3>

<pre><code>    githubcl GET /repos/:owner/:repo/issues [options] &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>List issues for a repository.</p>

<p>Options:</p>

<pre><code>    --q-filter     *  Issues assigned to you / created by you / mentioning you / you&#39;re       
                      subscribed to updates for / All issues the authenticated user can see   
    --q-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 </code></pre>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.

examples/html/githubcl.html  view on Meta::CPAN

<pre><code>    githubcl GET /repos/:owner/:repo/statuses/:ref &lt;owner&gt; &lt;repo&gt; &lt;ref&gt;</code></pre>

<p>List Statuses for a specific Ref....</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.                                                    
    repo   *  Name of repository.                                                          
    ref    *  Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.</code></pre>

<h3 id="GET-repos-:owner-:repo-subscribers">GET /repos/:owner/:repo/subscribers</h3>

<pre><code>    githubcl GET /repos/:owner/:repo/subscribers &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>List watchers.</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.
    repo   *  Name of repository.      </code></pre>

<h3 id="GET-repos-:owner-:repo-subscription">GET /repos/:owner/:repo/subscription</h3>

<pre><code>    githubcl GET /repos/:owner/:repo/subscription &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Get a Repository Subscription.</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.
    repo   *  Name of repository.      </code></pre>

<h3 id="GET-repos-:owner-:repo-tags">GET /repos/:owner/:repo/tags</h3>

examples/html/githubcl.html  view on Meta::CPAN


<h3 id="GET-user-issues">GET /user/issues</h3>

<pre><code>    githubcl GET /user/issues [options]</code></pre>

<p>List issues.</p>

<p>Options:</p>

<pre><code>    --q-filter     *  Issues assigned to you / created by you / mentioning you / you&#39;re       
                      subscribed to updates for / All issues the authenticated user can see   
    --q-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 </code></pre>

<h3 id="GET-user-keys">GET /user/keys</h3>

<pre><code>    githubcl GET /user/keys</code></pre>

examples/html/githubcl.html  view on Meta::CPAN


<pre><code>    githubcl GET /user/starred/:owner/:repo &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Check if you are starring a repository....</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of a repository owner.
    repo   *  Name of a repository.      </code></pre>

<h3 id="GET-user-subscriptions">GET /user/subscriptions</h3>

<pre><code>    githubcl GET /user/subscriptions</code></pre>

<p>List repositories being watched by the authenticat...</p>

<h3 id="GET-user-subscriptions-:owner-:repo">GET /user/subscriptions/:owner/:repo</h3>

<pre><code>    githubcl GET /user/subscriptions/:owner/:repo &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Check if you are watching a repository....</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of the owner. 
    repo   *  Name of repository.</code></pre>

<h3 id="GET-user-teams">GET /user/teams</h3>

examples/html/githubcl.html  view on Meta::CPAN

<h3 id="GET-users-:username-starred">GET /users/:username/starred</h3>

<pre><code>    githubcl GET /users/:username/starred &lt;username&gt;</code></pre>

<p>List repositories being starred by a user....</p>

<p>Parameters:</p>

<pre><code>    username  *  Name of user.</code></pre>

<h3 id="GET-users-:username-subscriptions">GET /users/:username/subscriptions</h3>

<pre><code>    githubcl GET /users/:username/subscriptions &lt;username&gt;</code></pre>

<p>List repositories being watched by a user....</p>

<p>Parameters:</p>

<pre><code>    username  *  Name of user.</code></pre>

<h3 id="PATCH">PATCH</h3>

<pre><code>    githubcl  PATCH &lt;subcommands&gt;</code></pre>

<p>PATCH call</p>

<h3 id="PATCH-gists-:id">PATCH /gists/:id</h3>

<pre><code>    githubcl PATCH /gists/:id &lt;id&gt;</code></pre>

<p>Edit a gist.</p>

<p>Parameters:</p>

examples/html/githubcl.html  view on Meta::CPAN

<pre><code>    teamId  *  Id of team.</code></pre>

<h3 id="PATCH-user">PATCH /user</h3>

<pre><code>    githubcl PATCH /user</code></pre>

<p>Update the authenticated user.</p>

<h3 id="POST">POST</h3>

<pre><code>    githubcl  POST &lt;subcommands&gt;</code></pre>

<p>POST call</p>

<h3 id="POST-gists">POST /gists</h3>

<pre><code>    githubcl POST /gists</code></pre>

<p>Create a gist.</p>

<h3 id="POST-gists-:id-comments">POST /gists/:id/comments</h3>

examples/html/githubcl.html  view on Meta::CPAN

<p>Create a public key.</p>

<h3 id="POST-user-repos">POST /user/repos</h3>

<pre><code>    githubcl POST /user/repos</code></pre>

<p>Create a new repository for the authenticated user...</p>

<h3 id="PUT">PUT</h3>

<pre><code>    githubcl  PUT &lt;subcommands&gt;</code></pre>

<p>PUT call</p>

<h3 id="PUT-gists-:id-star">PUT /gists/:id/star</h3>

<pre><code>    githubcl PUT /gists/:id/star &lt;id&gt;</code></pre>

<p>Star a gist.</p>

<p>Parameters:</p>

<pre><code>    id  *  Id of gist.</code></pre>

<h3 id="PUT-notifications">PUT /notifications</h3>

<pre><code>    githubcl PUT /notifications</code></pre>

<p>Mark as read.</p>

<h3 id="PUT-notifications-threads-:id-subscription">PUT /notifications/threads/:id/subscription</h3>

<pre><code>    githubcl PUT /notifications/threads/:id/subscription &lt;id&gt;</code></pre>

<p>Set a Thread Subscription.</p>

<p>Parameters:</p>

<pre><code>    id  *  Id of thread.</code></pre>

<h3 id="PUT-orgs-:org-public_members-:username">PUT /orgs/:org/public_members/:username</h3>

<pre><code>    githubcl PUT /orgs/:org/public_members/:username &lt;org&gt; &lt;username&gt;</code></pre>

examples/html/githubcl.html  view on Meta::CPAN

<pre><code>    githubcl PUT /repos/:owner/:repo/pulls/:number/merge &lt;owner&gt; &lt;repo&gt; &lt;number&gt;</code></pre>

<p>Merge a pull request (Merge Button&#39;s)...</p>

<p>Parameters:</p>

<pre><code>    owner   *  Name of repository owner.
    repo    *  Name of repository.      
    number  *  Id of pull.              </code></pre>

<h3 id="PUT-repos-:owner-:repo-subscription">PUT /repos/:owner/:repo/subscription</h3>

<pre><code>    githubcl PUT /repos/:owner/:repo/subscription &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Set a Repository Subscription</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.
    repo   *  Name of repository.      </code></pre>

<h3 id="PUT-teams-:teamId-members-:username">PUT /teams/:teamId/members/:username</h3>

examples/html/githubcl.html  view on Meta::CPAN


<pre><code>    githubcl PUT /user/starred/:owner/:repo &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Star a repository.</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of a repository owner.
    repo   *  Name of a repository.      </code></pre>

<h3 id="PUT-user-subscriptions-:owner-:repo">PUT /user/subscriptions/:owner/:repo</h3>

<pre><code>    githubcl PUT /user/subscriptions/:owner/:repo &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Watch a repository.</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of the owner. 
    repo   *  Name of repository.</code></pre>

<h3 id="help">help</h3>

<pre><code>    githubcl  help &lt;subcommands&gt; [options]</code></pre>

<p>Show command help</p>

<p>Options:</p>

<pre><code>    --all     (flag)</code></pre>

<h3 id="meta">_meta</h3>

<pre><code>    githubcl  _meta &lt;subcommands&gt;</code></pre>

<p>Information and utilities for this app</p>

<h3 id="meta-completion">_meta completion</h3>

<pre><code>    githubcl _meta completion &lt;subcommands&gt;</code></pre>

<p>Shell completion functions</p>

<h3 id="meta-completion-generate">_meta completion generate</h3>

<pre><code>    githubcl _meta completion generate [options]</code></pre>

<p>Generate self completion</p>

<p>Options:</p>

<pre><code>    --name    name of the program (optional, override name in spec)
    --zsh     for zsh (flag)                                       
    --bash    for bash (flag)                                      </code></pre>

<h3 id="meta-pod">_meta pod</h3>

<pre><code>    githubcl _meta pod &lt;subcommands&gt;</code></pre>

<p>Pod documentation</p>

<h3 id="meta-pod-generate">_meta pod generate</h3>

<pre><code>    githubcl _meta pod generate</code></pre>

<p>Generate self pod</p>


examples/html/metacpancl.html  view on Meta::CPAN


<pre><code>    --data-file     File with data for POST/PUT/PATCH/DELETE requests
    --debug -d      debug (flag)                                     
    --verbose -v    verbose (flag)                                   
    --help -h       Show command help (flag)                         </code></pre>

<h2 id="SUBCOMMANDS">SUBCOMMANDS</h2>

<h3 id="GET">GET</h3>

<pre><code>    metacpancl  GET &lt;subcommands&gt;</code></pre>

<p>GET call</p>

<h3 id="GET-author-:author">GET /author/:author</h3>

<pre><code>    metacpancl GET /author/:author &lt;author&gt;</code></pre>

<p>Author information</p>

<p>Parameters:</p>

examples/html/metacpancl.html  view on Meta::CPAN

<p>Search releases</p>

<p>Options:</p>

<pre><code>    --q-q       *  query (&quot;author:ANDK AND status:latest&quot;)
    --q-fields     resultset fields                       
    --q-size       how many results                       </code></pre>

<h3 id="POST">POST</h3>

<pre><code>    metacpancl  POST &lt;subcommands&gt;</code></pre>

<p>POST call</p>

<h3 id="POST-file">POST /file</h3>

<pre><code>    metacpancl POST /file</code></pre>

<p>file</p>

<h3 id="help">help</h3>

<pre><code>    metacpancl  help &lt;subcommands&gt; [options]</code></pre>

<p>Show command help</p>

<p>Options:</p>

<pre><code>    --all     (flag)</code></pre>

<h3 id="meta">_meta</h3>

<pre><code>    metacpancl  _meta &lt;subcommands&gt;</code></pre>

<p>Information and utilities for this app</p>

<h3 id="meta-completion">_meta completion</h3>

<pre><code>    metacpancl _meta completion &lt;subcommands&gt;</code></pre>

<p>Shell completion functions</p>

<h3 id="meta-completion-generate">_meta completion generate</h3>

<pre><code>    metacpancl _meta completion generate [options]</code></pre>

<p>Generate self completion</p>

<p>Options:</p>

<pre><code>    --name    name of the program (optional, override name in spec)
    --zsh     for zsh (flag)                                       
    --bash    for bash (flag)                                      </code></pre>

<h3 id="meta-pod">_meta pod</h3>

<pre><code>    metacpancl _meta pod &lt;subcommands&gt;</code></pre>

<p>Pod documentation</p>

<h3 id="meta-pod-generate">_meta pod generate</h3>

<pre><code>    metacpancl _meta pod generate</code></pre>

<p>Generate self pod</p>


examples/metacpancl-appspec.yaml  view on Meta::CPAN

- aliases:
  - d
  name: debug
  summary: debug
  type: flag
- aliases:
  - v
  name: verbose
  summary: verbose
  type: flag
subcommands:
  GET:
    op: apicall
    subcommands:
      /author/:author:
        options: []
        parameters:
        - name: author
          required: 1
          summary: CPAN handle
          type: string
        summary: Author information
      /distribution/:distribution:
        options: []

examples/metacpancl-appspec.yaml  view on Meta::CPAN

          type: string
        - name: q-size
          required: ~
          summary: how many results
          type: integer
        parameters: []
        summary: Search releases
    summary: GET call
  POST:
    op: apicall
    subcommands:
      /file:
        options: []
        parameters: []
        summary: file
    summary: POST call
summary: Unofficial MetaCPAN API specification
title: MetaCPAN API

examples/pod/digitaloceancl.pod  view on Meta::CPAN

    --data-file     File with data for POST/PUT/PATCH/DELETE requests
    --debug -d      debug (flag)                                     
    --verbose -v    verbose (flag)                                   
    --help -h       Show command help (flag)                         


=head2 SUBCOMMANDS

=head3  GET

    digitaloceancl  GET <subcommands>

GET call


=head3 GET /account

    digitaloceancl GET /account

Account information

examples/pod/digitaloceancl.pod  view on Meta::CPAN

    digitaloceancl GET /droplets/:id <id>

Retrieve a droplet by id

Parameters:

    id  *  

=head3  POST

    digitaloceancl  POST <subcommands>

POST call


=head3 POST /droplets/:id/actions

    digitaloceancl POST /droplets/:id/actions

Trigger droplet action


=head3  help

    digitaloceancl  help <subcommands> [options]

Show command help

Options:

    --all     (flag)


=head3  _meta

    digitaloceancl  _meta <subcommands>

Information and utilities for this app


=head3 _meta completion

    digitaloceancl _meta completion <subcommands>

Shell completion functions


=head3 _meta completion generate

    digitaloceancl _meta completion generate [options]

Generate self completion

Options:

    --name    name of the program (optional, override name in spec)
    --zsh     for zsh (flag)                                       
    --bash    for bash (flag)                                      


=head3 _meta pod

    digitaloceancl _meta pod <subcommands>

Pod documentation


=head3 _meta pod generate

    digitaloceancl _meta pod generate

Generate self pod

examples/pod/githubcl.pod  view on Meta::CPAN

    --data-file     File with data for POST/PUT/PATCH/DELETE requests
    --debug -d      debug (flag)                                     
    --verbose -v    verbose (flag)                                   
    --help -h       Show command help (flag)                         


=head2 SUBCOMMANDS

=head3  DELETE

    githubcl  DELETE <subcommands>

DELETE call


=head3 DELETE /gists/:id

    githubcl DELETE /gists/:id <id>

Delete a gist.

examples/pod/githubcl.pod  view on Meta::CPAN

=head3 DELETE /gists/:id/star

    githubcl DELETE /gists/:id/star <id>

Unstar a gist.

Parameters:

    id  *  Id of gist.

=head3 DELETE /notifications/threads/:id/subscription

    githubcl DELETE /notifications/threads/:id/subscription <id>

Delete a Thread Subscription.

Parameters:

    id  *  Id of thread.

=head3 DELETE /orgs/:org/members/:username

    githubcl DELETE /orgs/:org/members/:username <org> <username>

examples/pod/githubcl.pod  view on Meta::CPAN

    githubcl DELETE /repos/:owner/:repo/releases/assets/:id <owner> <repo> <id>

Delete a release asset

Parameters:

    owner  *  Name of repository owner.
    repo   *  Name of repository.      
    id     *                           

=head3 DELETE /repos/:owner/:repo/subscription

    githubcl DELETE /repos/:owner/:repo/subscription <owner> <repo>

Delete a Repository Subscription....

Parameters:

    owner  *  Name of repository owner.
    repo   *  Name of repository.      

=head3 DELETE /teams/:teamId

examples/pod/githubcl.pod  view on Meta::CPAN


    githubcl DELETE /user/starred/:owner/:repo <owner> <repo>

Unstar a repository

Parameters:

    owner  *  Name of a repository owner.
    repo   *  Name of a repository.      

=head3 DELETE /user/subscriptions/:owner/:repo

    githubcl DELETE /user/subscriptions/:owner/:repo <owner> <repo>

Stop watching a repository

Parameters:

    owner  *  Name of the owner. 
    repo   *  Name of repository.

=head3  GET

    githubcl  GET <subcommands>

GET call


=head3 GET /emojis

    githubcl GET /emojis

Lists all the emojis available to use on GitHub....

examples/pod/githubcl.pod  view on Meta::CPAN


=head3 GET /issues

    githubcl GET /issues [options]

List issues.

Options:

    --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-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 


=head3 GET /legacy/issues/search/:owner/:repository/:state/:keyword

examples/pod/githubcl.pod  view on Meta::CPAN

=head3 GET /notifications/threads/:id

    githubcl GET /notifications/threads/:id <id>

View a single thread.

Parameters:

    id  *  Id of thread.

=head3 GET /notifications/threads/:id/subscription

    githubcl GET /notifications/threads/:id/subscription <id>

Get a Thread Subscription.

Parameters:

    id  *  Id of thread.

=head3 GET /orgs/:org

    githubcl GET /orgs/:org <org>

examples/pod/githubcl.pod  view on Meta::CPAN


=head3 GET /orgs/:org/issues

    githubcl GET /orgs/:org/issues [options] <org>

List issues.

Options:

    --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-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 

Parameters:

    org  *  Name of organisation.

examples/pod/githubcl.pod  view on Meta::CPAN


=head3 GET /repos/:owner/:repo/issues

    githubcl GET /repos/:owner/:repo/issues [options] <owner> <repo>

List issues for a repository.

Options:

    --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-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 

Parameters:

    owner  *  Name of repository owner.

examples/pod/githubcl.pod  view on Meta::CPAN

    githubcl GET /repos/:owner/:repo/statuses/:ref <owner> <repo> <ref>

List Statuses for a specific Ref....

Parameters:

    owner  *  Name of repository owner.                                                    
    repo   *  Name of repository.                                                          
    ref    *  Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.

=head3 GET /repos/:owner/:repo/subscribers

    githubcl GET /repos/:owner/:repo/subscribers <owner> <repo>

List watchers.

Parameters:

    owner  *  Name of repository owner.
    repo   *  Name of repository.      

=head3 GET /repos/:owner/:repo/subscription

    githubcl GET /repos/:owner/:repo/subscription <owner> <repo>

Get a Repository Subscription.

Parameters:

    owner  *  Name of repository owner.
    repo   *  Name of repository.      

=head3 GET /repos/:owner/:repo/tags

examples/pod/githubcl.pod  view on Meta::CPAN


=head3 GET /user/issues

    githubcl GET /user/issues [options]

List issues.

Options:

    --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-state      *                                                                          
    --q-labels     *  String list of comma separated Label names. Example - bug,ui,@high.     
    --q-sort       *                                                                          
    --q-direction  *                                                                          
    --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.                 


=head3 GET /user/keys

examples/pod/githubcl.pod  view on Meta::CPAN


    githubcl GET /user/starred/:owner/:repo <owner> <repo>

Check if you are starring a repository....

Parameters:

    owner  *  Name of a repository owner.
    repo   *  Name of a repository.      

=head3 GET /user/subscriptions

    githubcl GET /user/subscriptions

List repositories being watched by the authenticat...


=head3 GET /user/subscriptions/:owner/:repo

    githubcl GET /user/subscriptions/:owner/:repo <owner> <repo>

Check if you are watching a repository....

Parameters:

    owner  *  Name of the owner. 
    repo   *  Name of repository.

=head3 GET /user/teams

examples/pod/githubcl.pod  view on Meta::CPAN

=head3 GET /users/:username/starred

    githubcl GET /users/:username/starred <username>

List repositories being starred by a user....

Parameters:

    username  *  Name of user.

=head3 GET /users/:username/subscriptions

    githubcl GET /users/:username/subscriptions <username>

List repositories being watched by a user....

Parameters:

    username  *  Name of user.

=head3  PATCH

    githubcl  PATCH <subcommands>

PATCH call


=head3 PATCH /gists/:id

    githubcl PATCH /gists/:id <id>

Edit a gist.

examples/pod/githubcl.pod  view on Meta::CPAN


=head3 PATCH /user

    githubcl PATCH /user

Update the authenticated user.


=head3  POST

    githubcl  POST <subcommands>

POST call


=head3 POST /gists

    githubcl POST /gists

Create a gist.

examples/pod/githubcl.pod  view on Meta::CPAN


=head3 POST /user/repos

    githubcl POST /user/repos

Create a new repository for the authenticated user...


=head3  PUT

    githubcl  PUT <subcommands>

PUT call


=head3 PUT /gists/:id/star

    githubcl PUT /gists/:id/star <id>

Star a gist.

examples/pod/githubcl.pod  view on Meta::CPAN


    id  *  Id of gist.

=head3 PUT /notifications

    githubcl PUT /notifications

Mark as read.


=head3 PUT /notifications/threads/:id/subscription

    githubcl PUT /notifications/threads/:id/subscription <id>

Set a Thread Subscription.

Parameters:

    id  *  Id of thread.

=head3 PUT /orgs/:org/public_members/:username

    githubcl PUT /orgs/:org/public_members/:username <org> <username>

examples/pod/githubcl.pod  view on Meta::CPAN

    githubcl PUT /repos/:owner/:repo/pulls/:number/merge <owner> <repo> <number>

Merge a pull request (Merge Button's)...

Parameters:

    owner   *  Name of repository owner.
    repo    *  Name of repository.      
    number  *  Id of pull.              

=head3 PUT /repos/:owner/:repo/subscription

    githubcl PUT /repos/:owner/:repo/subscription <owner> <repo>

Set a Repository Subscription

Parameters:

    owner  *  Name of repository owner.
    repo   *  Name of repository.      

=head3 PUT /teams/:teamId/members/:username

examples/pod/githubcl.pod  view on Meta::CPAN


    githubcl PUT /user/starred/:owner/:repo <owner> <repo>

Star a repository.

Parameters:

    owner  *  Name of a repository owner.
    repo   *  Name of a repository.      

=head3 PUT /user/subscriptions/:owner/:repo

    githubcl PUT /user/subscriptions/:owner/:repo <owner> <repo>

Watch a repository.

Parameters:

    owner  *  Name of the owner. 
    repo   *  Name of repository.

=head3  help

    githubcl  help <subcommands> [options]

Show command help

Options:

    --all     (flag)


=head3  _meta

    githubcl  _meta <subcommands>

Information and utilities for this app


=head3 _meta completion

    githubcl _meta completion <subcommands>

Shell completion functions


=head3 _meta completion generate

    githubcl _meta completion generate [options]

Generate self completion

Options:

    --name    name of the program (optional, override name in spec)
    --zsh     for zsh (flag)                                       
    --bash    for bash (flag)                                      


=head3 _meta pod

    githubcl _meta pod <subcommands>

Pod documentation


=head3 _meta pod generate

    githubcl _meta pod generate

Generate self pod

examples/pod/metacpancl.pod  view on Meta::CPAN

    --data-file     File with data for POST/PUT/PATCH/DELETE requests
    --debug -d      debug (flag)                                     
    --verbose -v    verbose (flag)                                   
    --help -h       Show command help (flag)                         


=head2 SUBCOMMANDS

=head3  GET

    metacpancl  GET <subcommands>

GET call


=head3 GET /author/:author

    metacpancl GET /author/:author <author>

Author information

examples/pod/metacpancl.pod  view on Meta::CPAN


Options:

    --q-q       *  query ("author:ANDK AND status:latest")
    --q-fields     resultset fields                       
    --q-size       how many results                       


=head3  POST

    metacpancl  POST <subcommands>

POST call


=head3 POST /file

    metacpancl POST /file

file


=head3  help

    metacpancl  help <subcommands> [options]

Show command help

Options:

    --all     (flag)


=head3  _meta

    metacpancl  _meta <subcommands>

Information and utilities for this app


=head3 _meta completion

    metacpancl _meta completion <subcommands>

Shell completion functions


=head3 _meta completion generate

    metacpancl _meta completion generate [options]

Generate self completion

Options:

    --name    name of the program (optional, override name in spec)
    --zsh     for zsh (flag)                                       
    --bash    for bash (flag)                                      


=head3 _meta pod

    metacpancl _meta pod <subcommands>

Pod documentation


=head3 _meta pod generate

    metacpancl _meta pod generate

Generate self pod

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

                        ;;
                        repo)

                        ;;
                        id)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/subscription)

                        # ---- Command: DELETE /repos/:owner/:repo/subscription
                        _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]' \

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

                            '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


examples/zsh/_githubcl  view on Meta::CPAN

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

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

examples/zsh/_githubcl  view on Meta::CPAN

                            '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

examples/zsh/_githubcl  view on Meta::CPAN

                        ;;
                        repo)

                        ;;
                        ref)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/subscribers)

                        # ---- Command: GET /repos/:owner/:repo/subscribers
                        _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]' \

examples/zsh/_githubcl  view on Meta::CPAN

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/subscription)

                        # ---- Command: GET /repos/:owner/:repo/subscription
                        _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]' \

examples/zsh/_githubcl  view on Meta::CPAN

                            '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


examples/zsh/_githubcl  view on Meta::CPAN

                        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]' \
                            '-v[verbose]' \

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

                        ;;
                        repo)

                        ;;
                        number)

                        ;;
                        esac

                    ;;
                    /repos/:owner/:repo/subscription)

                        # ---- Command: PUT /repos/:owner/:repo/subscription
                        _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]' \

examples/zsh/_githubcl  view on Meta::CPAN

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

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

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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


                            ;;
                            /repos/:owner/:repo/subscription)

                                # ---- Command: help DELETE /repos/:owner/:repo/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]' \

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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


                            ;;
                            /repos/:owner/:repo/subscribers)

                                # ---- Command: help GET /repos/:owner/:repo/subscribers
                                _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/subscription)

                                # ---- Command: help GET /repos/:owner/:repo/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]' \

examples/zsh/_githubcl  view on Meta::CPAN

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


                            ;;
                            /user/subscriptions)

                                # ---- Command: help GET /user/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


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

                                # ---- Command: help GET /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]' \

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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

examples/zsh/_githubcl  view on Meta::CPAN

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


                            ;;
                            /repos/:owner/:repo/subscription)

                                # ---- Command: help PUT /repos/:owner/:repo/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]' \

examples/zsh/_githubcl  view on Meta::CPAN

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


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

                                # ---- Command: help PUT /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]' \

lib/API/CLI.pm  view on Meta::CPAN

use HTTP::Request;
use App::Spec;
use JSON::XS;
use API::CLI::Request;

use Moo;

has dir => ( is => 'ro' );
has openapi => ( is => 'ro' );

sub add_auth {
    my ($self, $req) = @_;
    my $appconfig = $self->read_appconfig;
    my $token = $appconfig->{token};
    $req->header(Authorization => "Bearer $token");
}

sub read_appconfig {
    my ($self) = @_;
    my $dir = $self->dir;
    my $appconfig = YAML::XS::LoadFile("$dir/config.yaml");
}

sub apicall {
    my ($self, $run) = @_;
    my ($method, $path) = @{ $run->commands };
    my $params = $run->parameters;
    my $opt = $run->options;
    if ($opt->{debug}) {
        warn __PACKAGE__.':'.__LINE__.": apicall($method $path)\n";
        warn __PACKAGE__.':'.__LINE__.$".Data::Dumper->Dump([\$params], ['params']);
        warn __PACKAGE__.':'.__LINE__.$".Data::Dumper->Dump([\$opt], ['opt']);
    }
    $path =~ s{(?::(\w+)|\{(\w+)\})}{$params->{ $1 // $2 }}g;

lib/API/CLI.pm  view on Meta::CPAN


API::CLI - Generic Framework for REST API Command Line Clients

=head1 SYNOPSIS

    use API::CLI::App::Spec;

    package API::CLI::MetaCPAN;
    use base 'API::CLI';

    sub add_auth {
    }

    package main;

    my $appspec_file = "$Bin/../metacpancl-appspec.yaml";
    my $spec = API::CLI::App::Spec->read($appspec_file);
    my $runner = App::Spec::Run->new(
        spec => $spec,
        cmd => API::CLI::MetaCPAN->new(
            dir => "$ENV{HOME}/.githubcl",

lib/API/CLI/App/Spec.pm  view on Meta::CPAN

our $VERSION = '0.001'; # VERSION

use YAML::XS qw/ LoadFile /;

use base 'App::Spec';

use Moo;

has openapi => ( is => 'ro' );

sub from_openapi {
    my ($class, %args) = @_;

    my $file = delete $args{file};
    my $openapi = LoadFile($file);

    my $spec = $class->openapi2appspec(
        openapi => $openapi,
        %args,
    );

    my $appspec = $class->read($spec);

    return $appspec;
}

sub openapi2appspec {
    my ($class, %args) = @_;

    my $openapi = $args{openapi};
    my $name = $args{name};
    my $classname = $args{class};
    my $spec;

    my $paths = $openapi->{paths};
    my $subcommands = $spec->{subcommands} = {};

    for my $path (sort keys %$paths) {
        my $methods = $paths->{ $path };
        $path =~ s{(?:\{(\w+)\})}{:$1}g;
        for my $method (sort keys %$methods) {

            my $config = $methods->{ $method };
            $spec->{name} = $name;
            $spec->{class} = $classname;
            $spec->{title} //= $openapi->{info}->{title};

lib/API/CLI/App/Spec.pm  view on Meta::CPAN

                    my $appspec_param = $class->param2appspec($p);
                    if ($p->{in} eq 'path') {
                        push @parameters, $appspec_param;
                    }
                    elsif ($p->{in} eq 'query') {
                        push @options, $appspec_param;
                    }
                }
            }

            my $apicall = $subcommands->{ uc $method } ||= {
                op => 'apicall',
                summary => "\U$method\E call",
                subcommands => {},
            };
            my $desc = $config->{description};
            $desc =~ s/\n.*//s;
            if (length $desc > 30) {
                $desc = substr($desc, 0, 50) . '...';
            }
            my $subcmd = $apicall->{subcommands}->{ $path } ||= {
                summary => $desc,
                parameters => \@parameters,
                options => \@options,
            };

        }
    }

    $spec->{openapi} = $openapi;

lib/API/CLI/App/Spec.pm  view on Meta::CPAN

        name => "verbose",
        type => "flag",
        summary => "verbose",
        aliases => ['v'],
    };
    $spec->{apppec}->{version} = '0.001';

    return $spec;
}

sub param2appspec {
    my ($self, $p) = @_;
    my $type = $p->{type};
    my $required = $p->{required};
    my $item = {
        name => $p->{name},
        type => $type,
        required => $required,
        summary => $p->{description},
        $p->{enum} ? (enum => $p->{enum}) : (),
    };

lib/API/CLI/Cmd.pm  view on Meta::CPAN

use strict;
use warnings;

our $VERSION = '0.001'; # VERSION

use feature qw/ say /;
use base 'App::Spec::Run::Cmd';
use API::CLI::App::Spec;
use YAML::XS qw/ LoadFile DumpFile Dump /;

sub appspec_openapi {
    my ($self, $run) = @_;
    my $options = $run->options;
    my $parameters = $run->parameters;

    my $openapi_file = $parameters->{file};
    my $outfile = $options->{out};
    my $class = $options->{class} || 'API::CLI';
    my $name = $options->{name};

    my $openapi = LoadFile($openapi_file);

lib/API/CLI/Request.pm  view on Meta::CPAN


use Moo;

has openapi => ( is => 'ro' );
has method => ( is => 'ro' );
has path => ( is => 'ro' );
has req => ( is => 'rw' );
has url => ( is => 'rw' );
has verbose => ( is => 'ro' );

sub from_openapi {
    my ($class, %args) = @_;

    my $method = $args{method};
    my $path = delete $args{path};
    my $opt = delete $args{options};
    my $params = delete $args{parameters};

    my $self = $class->new(
        openapi => delete $args{openapi},
        method => delete $args{method},

lib/API/CLI/Request.pm  view on Meta::CPAN

    }
    $url->query_form(%query);
    $self->url($url);

    my $req = HTTP::Request->new( $self->method => $self->url );
    $self->req($req);

    return $self;
}

sub request {
    my ($self) = @_;

    my $ua = LWP::UserAgent->new;
    my $req = $self->req;
    my $res = $ua->request($req);
    my $code = $res->code;
    my $content = $res->decoded_content;
    my $status = $res->status_line;

    my $ct = $res->content_type;

lib/API/CLI/Request.pm  view on Meta::CPAN

        if ($ct eq 'application/json') {
            my $coder = JSON::XS->new->ascii->pretty->allow_nonref;
            $data = $coder->decode($content);
            $content = $coder->encode($data);
        }
    }

    return ($ok, $out, $content);
}

sub content {
    shift->req->content(@_);
}

sub header {
    shift->req->header(@_);
}

1;

__END__

=pod

=head1 NAME

lib/apicli.pod  view on Meta::CPAN

    --out       Output file (default stdout)         
    --name   *  appname                              
    --class     Class name (default API::CLI)        

Parameters:

    file  *  openapi file

=head3  help

    apicli  help <subcommands> [options]

Show command help

Options:

    --all     (flag)


=head3  _meta

    apicli  _meta <subcommands>

Information and utilities for this app


=head3 _meta completion

    apicli _meta completion <subcommands>

Shell completion functions


=head3 _meta completion generate

    apicli _meta completion generate [options]

Generate self completion

Options:

    --name    name of the program (optional, override name in spec)
    --zsh     for zsh (flag)                                       
    --bash    for bash (flag)                                      


=head3 _meta pod

    apicli _meta pod <subcommands>

Pod documentation


=head3 _meta pod generate

    apicli _meta pod generate

Generate self pod

share/apicli-spec.yaml  view on Meta::CPAN

name: apicli
appspec: { version: '0.001' }
class: API::CLI::Cmd
title: 'API::CLI utils'
description: |
  apicli lets you create an appspec file from an OpenAPI file.
options:
subcommands:
    appspec:
      summary: "Generate App::Spec file"
      op: "appspec_openapi"
      description: "This will generate an App::Spec file from an OpenAPI file"
      options:
      - name: from
        summary: Currently only 'openapi' is supported
        default: 'openapi'
      - name: out
        summary: Output file (default stdout)

share/completion/bash/apicli.bash  view on Meta::CPAN

    __apicli_handle_options_flags

    case $INDEX in

    0)
        __comp_current_options || return
        __apicli_dynamic_comp 'commands' 'appspec'$'\t''Generate App::Spec file'$'\n''help'$'\t''Show command help'

    ;;
    *)
    # subcmds
    case ${MYWORDS[0]} in
      _meta)
        FLAGS+=()
        OPTIONS+=()
        __apicli_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __apicli_dynamic_comp 'commands' 'completion'$'\t''Shell completion functions'$'\n''pod'$'\t''Pod documentation'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          completion)
            FLAGS+=()
            OPTIONS+=()
            __apicli_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __apicli_dynamic_comp 'commands' 'generate'$'\t''Generate self completion'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=('--zsh' 'for zsh' '--bash' 'for bash')
                OPTIONS+=('--name' 'name of the program (optional, override name in spec)')
                __apicli_handle_options_flags
                  case $INDEX in
                  *)
                    __comp_current_options true || return # after parameters
                    case ${MYWORDS[$INDEX-1]} in
                      --name)

share/completion/bash/apicli.bash  view on Meta::CPAN

            OPTIONS+=()
            __apicli_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __apicli_dynamic_comp 'commands' 'generate'$'\t''Generate self pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              generate)
                FLAGS+=()
                OPTIONS+=()
                __apicli_handle_options_flags
                __comp_current_options true || return # no subcmds, no params/opts
              ;;
            esac

            ;;
            esac
          ;;
        esac

        ;;
        esac

share/completion/bash/apicli.bash  view on Meta::CPAN

        OPTIONS+=()
        __apicli_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __apicli_dynamic_comp 'commands' 'appspec'

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          _meta)
            FLAGS+=()
            OPTIONS+=()
            __apicli_handle_options_flags
            case $INDEX in

            2)
                __comp_current_options || return
                __apicli_dynamic_comp 'commands' 'completion'$'\n''pod'

            ;;
            *)
            # subcmds
            case ${MYWORDS[2]} in
              completion)
                FLAGS+=()
                OPTIONS+=()
                __apicli_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __apicli_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __apicli_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
              pod)
                FLAGS+=()
                OPTIONS+=()
                __apicli_handle_options_flags
                case $INDEX in

                3)
                    __comp_current_options || return
                    __apicli_dynamic_comp 'commands' 'generate'

                ;;
                *)
                # subcmds
                case ${MYWORDS[3]} in
                  generate)
                    FLAGS+=()
                    OPTIONS+=()
                    __apicli_handle_options_flags
                    __comp_current_options true || return # no subcmds, no params/opts
                  ;;
                esac

                ;;
                esac
              ;;
            esac

            ;;
            esac
          ;;
          appspec)
            FLAGS+=()
            OPTIONS+=()
            __apicli_handle_options_flags
            __comp_current_options true || return # no subcmds, no params/opts
          ;;
        esac

        ;;
        esac
      ;;
    esac

    ;;
    esac



( run in 1.752 second using v1.01-cache-2.11-cpan-88abd93f124 )