view release on metacpan or search on metacpan
---
abstract: 'Generic Framework for REST API Command Line Clients'
author:
- 'Tina Müller <cpan2@tinita.de>'
build_requires:
File::Spec: '0'
IO::Handle: '0'
IPC::Open3: '0'
Test::More: '0'
blib: '1.01'
configure_requires:
ExtUtils::MakeMaker: '0'
File::ShareDir::Install: '0.06'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.143240'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
Makefile.PL view on Meta::CPAN
"YAML::XS" => 0,
"base" => 0,
"feature" => 0,
"strict" => 0,
"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 = (
Makefile.PL view on Meta::CPAN
"App::Spec" => 0,
"App::Spec::Run::Cmd" => 0,
"File::Share" => 0,
"File::Spec" => 0,
"HTTP::Request" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"JSON::XS" => 0,
"LWP::UserAgent" => 0,
"Moo" => 0,
"Test::More" => 0,
"URI" => 0,
"YAML::XS" => 0,
"base" => 0,
"blib" => "1.01",
"feature" => 0,
"strict" => 0,
"warnings" => 0
);
version = 0.001
[@Filter]
-bundle = @Basic
-remove = GatherDir
option = for_basic
[AutoPrereqs]
[OverridePkgVersion]
[MetaProvides::Package]
[Test::Compile]
filename = t/00.compile.t
[CopyFilesFromBuild]
copy = Makefile.PL
; requires CopyFilesFromBuild >= 0.163040
copy = t/00.compile.t
[GatherDir]
exclude_filename = Makefile.PL
exclude_filename = t/00.compile.t
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/githubcl-appspec.yaml view on Meta::CPAN
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
examples/githubcl-appspec.yaml view on Meta::CPAN
summary: Name of repository owner.
type: string
- name: repo
required: 1
summary: Name of repository.
type: string
- name: hookId
required: 1
summary: Id of hook.
type: integer
summary: Test a push hook.
/repos/:owner/:repo/issues:
options: []
parameters:
- name: owner
required: 1
summary: Name of repository owner.
type: string
- name: repo
required: 1
summary: Name of repository.
examples/githubcl-openapi.yaml view on Meta::CPAN
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
examples/html/githubcl.html view on Meta::CPAN
<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 <owner> <repo> <hookId></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>
<pre><code> githubcl POST /repos/:owner/:repo/issues <owner> <repo></code></pre>
examples/pod/githubcl.pod view on Meta::CPAN
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
githubcl POST /repos/:owner/:repo/issues <owner> <repo>
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' \
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'
);
t/00.compile.t view on Meta::CPAN
grep { chomp; $_ ne (File::Spec->splitpath($file))[2] } @_warnings)
{
warn @_warnings;
push @warnings, @_warnings;
}
} }
is(scalar(@warnings), 0, 'no warnings found')
or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING};
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();