NAME

Aion::Run::Runner - runs the command described by the #@run annotation

SYNOPSIS

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



use Aion::Format qw/trappout/;
use Data::Printer colored => 1, caller_info => 0, show_memsize => 0;
use Aion::Run::Runner;
use Aion::Run::RunRun;

trappout { Aion::Run::Runner->run("run", "1+2") } # -> do { my $t = 3; p $t, return_value => "dump", caller_info => 0, show_memsize => 0 } . "\n"

DESCRIPTION

Aion::Run::Runner reads the file etc/annotation/run.ann with a list of scripts, and any script from the list can be executed through its run method.

The path to the file with scripts can be changed using the AION_ANNOTATION_INI config.

Used in the act command.

FEATURES

runs

Hash with commands. Loaded from a file.

SUBROUTINES

run ($name, @args)

Runs a command with the name $name and the arguments @args from the list etc/annotation/run.ann.

AUTHOR

Yaroslav O. Kosmina mailto:darviarush@mail.ru

LICENSE

⚖ GPLv3

COPYRIGHT

The Aion::Run::Runner module is copyright © 2023 Yaroslav O. Kosmina. Rusland. All rights reserved.