Aion-Run
view release on metacpan or search on metacpan
lib/Aion/Run/Runner.pm view on Meta::CPAN
use List::Util qw/pairgrep/;
use config INI => 'etc/annotation/run.ann';
use Aion;
# СпиÑок команд
has runs => (is => 'ro', isa => HashRef, default => sub {
my($self) = @_;
my %run;
open my $f, '<:utf8', INI or die "Can't open ${\INI}: $!";
while (<$f>) {
chomp;
warn("Annotation error. Use #\@run <rubric>:<name> <remark>\n$_\n at ${\INI} line $."), next unless /^([\w:]+)#(\w*),(\d+)=(\S+?):(\S+)[ \t]+(.+)/am;
$run{$5} = {
rubric => $4,
name => $5,
remark => $6,
pkg => $1,
sub => $2,
};
#!/usr/bin/env perl
use common::sense;
use open qw/:std :utf8/;
use Aion::Carp;
use Aion::Run::Runner;
if($ARGV[0] ~~ ['--help', '-h']) {
print << "END";
Usage:
act <run> [arguments]
t/aion/run.t view on Meta::CPAN
use common::sense; use open qw/:std :utf8/; use Carp qw//; use Cwd qw//; use File::Basename qw//; use File::Find qw//; use File::Slurper qw//; use File::Spec qw//; use File::Path qw//; use Scalar::Util qw//; use Test::More 0.98; use String::Diff q...
# # NAME
#
# Aion::Run - ÑÐ¾Ð»Ñ Ð´Ð»Ñ ÐºÐ¾Ð½ÑолÑнÑÑ
команд
#
# # VERSION
#
# 0.0.2
#
# # SYNOPSIS
#
t/aion/run/run-run.t view on Meta::CPAN
use common::sense; use open qw/:std :utf8/; use Carp qw//; use Cwd qw//; use File::Basename qw//; use File::Find qw//; use File::Slurper qw//; use File::Spec qw//; use File::Path qw//; use Scalar::Util qw//; use Test::More 0.98; use String::Diff q...
# # NAME
#
# Aion::Run::RunRun - вÑполнÑÐµÑ Perl-код и ÑаÑпеÑаÑÑÐ²Ð°ÐµÑ ÑезÑлÑÑÐ°Ñ Ð½Ð° STDOUT
#
# # SYNOPSIS
#
subtest 'SYNOPSIS' => sub {
use Aion::Format qw/trappout np/;
use Aion::Run::RunRun;
t/aion/run/runner.t view on Meta::CPAN
use common::sense; use open qw/:std :utf8/; use Carp qw//; use Cwd qw//; use File::Basename qw//; use File::Find qw//; use File::Slurper qw//; use File::Spec qw//; use File::Path qw//; use Scalar::Util qw//; use Test::More 0.98; use String::Diff q...
# # NAME
#
# Aion::Run::Runner - запÑÑÐºÐ°ÐµÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ Ð¾Ð¿Ð¸ÑаннÑÑ Ð°Ð½Ð½Ð¾ÑаÑией `#@run`
#
# # SYNOPSIS
#
# Файл etc/annotation/run.ann:
#@> etc/annotation/run.ann
#>> Aion::Run::RunRun#run,3=run:run âExecutes Perl code in the context of the current projectâ
#>> Aion::Run::RunsRun#list,5=run:runs âList of scriptsâ
t/aion/run/runs-run.t view on Meta::CPAN
use common::sense; use open qw/:std :utf8/; use Carp qw//; use Cwd qw//; use File::Basename qw//; use File::Find qw//; use File::Slurper qw//; use File::Spec qw//; use File::Path qw//; use Scalar::Util qw//; use Test::More 0.98; use String::Diff q...
# # NAME
#
# Aion::Run::RunsRun - ÑпиÑок ÑкÑипÑов Ñ Ð°Ð½Ð½Ð¾ÑаÑией `#@run`
#
# # SYNOPSIS
#
# Файл etc/annotation/run.ann:
#@> etc/annotation/run.ann
#>> Aion::Run::RunRun#run,3=run:run âExecutes Perl code in the context of the current projectâ
#>> Aion::Run::RunsRun#list,5=run:runs âList of scriptsâ
( run in 1.474 second using v1.01-cache-2.11-cpan-39bf76dae61 )