Incorrect search filter: invalid characters - *.p[ml]
API-CLI

 view release on metacpan or  search on metacpan

LICENSE  view on Meta::CPAN

OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

                     END OF TERMS AND CONDITIONS

        Appendix: How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.

  To do so, attach the following notices to the program.  It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>

Makefile.PL  view on Meta::CPAN

    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "File::Spec" => 0,
    "IO::Handle" => 0,
    "IPC::Open3" => 0,
    "Test::More" => 0,
    "blib" => "1.01"
  },
  "VERSION" => "0.001",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "App::AppSpec" => 0,
  "App::Spec" => 0,
  "App::Spec::Run::Cmd" => 0,
  "File::Share" => 0,

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

        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

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/hooks/:hookId/tests)
            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
          ;;
          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

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

                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

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

                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;

                esac
                ;;
            esac
          ;;
          /release/_search)
            FLAGS+=()
            OPTIONS+=('--q-q' 'query ("author:ANDK AND status:latest")' '--q-fields' 'resultset fields' '--q-size' 'how many results')
            __metacpancl_handle_options_flags
              case $INDEX in
              *)
                __comp_current_options true || return # after parameters
                case ${MYWORDS[$INDEX-1]} in
                  --data-file)
                  ;;
                  --q-q)
                  ;;
                  --q-fields)

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

                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
        unread:
          type: boolean

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

            $ref: '#/definitions/hookBody'
        responses:
          '200':
            description: OK
            schema:
              $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.
          in: path

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

        parameters:
        - name: owner
          required: 1
          summary: Name of repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string
        summary: Create a hook.
      /repos/:owner/:repo/hooks/:hookId/tests:
        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-openapi.yaml  view on Meta::CPAN

            $ref: '#/definitions/hookBody'
      responses:
        '200':
          description: OK
          schema:
            $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.
          in: path

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

              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
      unread:
        type: boolean

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

          <li><a href="#POST-repos-:owner-:repo-commits-:shaCode-comments">POST /repos/:owner/:repo/commits/:shaCode/comments</a></li>
          <li><a href="#POST-repos-:owner-:repo-deployments">POST /repos/:owner/:repo/deployments</a></li>
          <li><a href="#POST-repos-:owner-:repo-deployments-:id-statuses">POST /repos/:owner/:repo/deployments/:id/statuses</a></li>
          <li><a href="#POST-repos-:owner-:repo-forks">POST /repos/:owner/:repo/forks</a></li>
          <li><a href="#POST-repos-:owner-:repo-git-blobs">POST /repos/:owner/:repo/git/blobs</a></li>
          <li><a href="#POST-repos-:owner-:repo-git-commits">POST /repos/:owner/:repo/git/commits</a></li>
          <li><a href="#POST-repos-:owner-:repo-git-refs">POST /repos/:owner/:repo/git/refs</a></li>
          <li><a href="#POST-repos-:owner-:repo-git-tags">POST /repos/:owner/:repo/git/tags</a></li>
          <li><a href="#POST-repos-:owner-:repo-git-trees">POST /repos/:owner/:repo/git/trees</a></li>
          <li><a href="#POST-repos-:owner-:repo-hooks">POST /repos/:owner/:repo/hooks</a></li>
          <li><a href="#POST-repos-:owner-:repo-hooks-:hookId-tests">POST /repos/:owner/:repo/hooks/:hookId/tests</a></li>
          <li><a href="#POST-repos-:owner-:repo-issues">POST /repos/:owner/:repo/issues</a></li>
          <li><a href="#POST-repos-:owner-:repo-issues-:number-comments">POST /repos/:owner/:repo/issues/:number/comments</a></li>
          <li><a href="#POST-repos-:owner-:repo-issues-:number-labels">POST /repos/:owner/:repo/issues/:number/labels</a></li>
          <li><a href="#POST-repos-:owner-:repo-keys">POST /repos/:owner/:repo/keys</a></li>
          <li><a href="#POST-repos-:owner-:repo-labels">POST /repos/:owner/:repo/labels</a></li>
          <li><a href="#POST-repos-:owner-:repo-merges">POST /repos/:owner/:repo/merges</a></li>
          <li><a href="#POST-repos-:owner-:repo-milestones">POST /repos/:owner/:repo/milestones</a></li>
          <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>

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


<pre><code>    githubcl POST /repos/:owner/:repo/hooks &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>Create a hook.</p>

<p>Parameters:</p>

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

<h3 id="POST-repos-:owner-:repo-hooks-:hookId-tests">POST /repos/:owner/:repo/hooks/:hookId/tests</h3>

<pre><code>    githubcl POST /repos/:owner/:repo/hooks/:hookId/tests &lt;owner&gt; &lt;repo&gt; &lt;hookId&gt;</code></pre>

<p>Test a push hook.</p>

<p>Parameters:</p>

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

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

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

<pre><code>    distribution  *  distribution name</code></pre>

<h3 id="GET-release-_search">GET /release/_search</h3>

<pre><code>    metacpancl GET /release/_search [options]</code></pre>

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

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

        parameters:
        - description: distribution name
          in: path
          name: distribution
          required: true
          type: string
    /release/_search:
      get:
        description: Search releases
        parameters:
        - description: query ("author:ANDK AND status:latest")
          in: query
          name: q
          required: true
          type: string
        - description: resultset fields
          in: query
          name: fields
          type: string
        - description: how many results
          in: query

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

        parameters:
        - name: distribution
          required: 1
          summary: distribution name
          type: string
        summary: Release information
      /release/_search:
        options:
        - name: q-q
          required: 1
          summary: query ("author:ANDK AND status:latest")
          type: string
        - name: q-fields
          required: ~
          summary: resultset fields
          type: string
        - name: q-size
          required: ~
          summary: how many results
          type: integer
        parameters: []

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


  /release/_search:
    get:
      description: Search releases
      parameters:
        -
          name: q
          in: query
          type: string
          required: true
          description: query ("author:ANDK AND status:latest")
        -
          name: fields
          in: query
          type: string
          description: resultset fields
        -
          name: size
          in: query
          type: integer
          description: how many results

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


    githubcl POST /repos/:owner/:repo/hooks <owner> <repo>

Create a hook.

Parameters:

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

=head3 POST /repos/:owner/:repo/hooks/:hookId/tests

    githubcl POST /repos/:owner/:repo/hooks/:hookId/tests <owner> <repo> <hookId>

Test a push hook.

Parameters:

    owner   *  Name of repository owner.
    repo    *  Name of repository.      
    hookId  *  Id of hook.              

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

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

    distribution  *  distribution name

=head3 GET /release/_search

    metacpancl GET /release/_search [options]

Search releases

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

examples/zsh/_githubcl  view on Meta::CPAN

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


                case $state in
                cmd2)
                    _alternative 'args:cmd3:((/gists\:"Create a gist." /gists/\\:id/comments\:"Create a commen" /gists/\\:id/forks\:"Fork a gist." /markdown\:"Render an arbitrary Markdown document..." /markdown/raw\:"Render a Markdown document in raw...
                ;;

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

                        # ---- Command: POST /gists
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \

examples/zsh/_githubcl  view on Meta::CPAN

                        case $state in
                        owner)

                        ;;
                        repo)

                        ;;
                        esac

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

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

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 /gists/\\:id/comments /gists/\\:id/forks /markdown /markdown/raw /orgs/\\:org/repos /orgs/\\:org/teams /repos/\\:owner/\\:repo/commits/\\:shaCode/comments /repos/\\:owner/\\:repo/deployment...
                        ;;

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

                                # ---- Command: help POST /gists
                                _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


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

                                # ---- Command: help POST /repos/:owner/:repo/hooks/:hookId/tests
                                _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/_metacpancl  view on Meta::CPAN

                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \
                            '--data-file[File with data for POST/PUT/PATCH/DELETE requests]:data-file:_files' \
                            '--debug[debug]' \
                            '-d[debug]' \
                            '--verbose[verbose]' \
                            '-v[verbose]' \
                            '--help[Show command help]' \
                            '-h[Show command help]' \
                            '--q-q[query ("author:ANDK AND status:latest")]:q-q' \
                            '--q-fields[resultset fields]:q-fields' \
                            '--q-size[how many results]:q-size' \
                            && ret=0


                    ;;
                    esac

                ;;

t/00.compile.t  view on Meta::CPAN

use 5.006;
use strict;
use warnings;

# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.056

use Test::More;

plan tests => 5 + ($ENV{AUTHOR_TESTING} ? 1 : 0);

my @module_files = (
    'API/CLI.pm',
    'API/CLI/App/Spec.pm',
    'API/CLI/Cmd.pm',
    'API/CLI/Request.pm'
);

my @scripts = (
    'bin/apicli'

t/00.compile.t  view on Meta::CPAN


    my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-c', $file);
    binmode $stderr, ':crlf' if $^O eq 'MSWin32';
    my @_warnings = <$stderr>;
    waitpid($pid, 0);
    is($?, 0, "$file compiled ok");

    shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
        and not eval { require blib; blib->VERSION('1.01') };

    # in older perls, -c output is simply the file portion of the path being tested
    if (@_warnings = grep { !/\bsyntax OK$/ }
        grep { chomp; $_ ne (File::Spec->splitpath($file))[2] } @_warnings)
    {
        warn @_warnings;
        push @warnings, @_warnings;
    }
} }



xt/02.pod-cover.t  view on Meta::CPAN

use Test::More;
eval "use Test::Pod::Coverage 1.00";
plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage" if $@;
#plan tests => 8;
my $xsaccessor = eval "use Class::XSAccessor; 1";
unless ($xsaccessor) {
    diag "\n----------------";
    diag "Class::XSAccessor is not installed. Class attributes might not be checked";
    diag "----------------";
}
#pod_coverage_ok("App::Spec");
# TODO
all_pod_coverage_ok();



( run in 0.467 second using v1.01-cache-2.11-cpan-87723dcf8b7 )