Canella
view release on metacpan or search on metacpan
lib/Canella/CLI.pm view on Meta::CPAN
123456789101112131415161718192021package
Canella::CLI;
use
Moo;
use
Canella::Context;
use
Canella::Log;
use
Getopt::Long ();
use
Guard;
sub
parse_argv {
my
(
$self
,
$ctx
,
@argv
) =
@_
;
local
@ARGV
=
@argv
;
my
$p
= Getopt::Long::Parser->new;
$p
->configure(
qw(
posix_default
no_ignore_case
auto_help
)
);
my
@optspec
= qw(
config|c=s
set|s=s%
concurrency|C=i
lib/Canella/Context.pm view on Meta::CPAN
144145146147148149150151152153154155156157158159160161162163164=head1 $section
@{[ $self->docs->get($section) ]}
EOM
}
print $tempfile "\n=cut\n";
$tempfile->flush;
local @ARGV = ('-F', $tempfile->filename);
exit(Pod::Perldoc->run());
}
# Thread-specific stash
sub stash {
my $self = shift;
my $stash = $Coro::current->{Canella} ||= {};
if (@_ == 0) {
return $stash;
( run in 0.521 second using v1.01-cache-2.11-cpan-49f99fa48dc )