NAME

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

SYNOPSIS

File etc/annotation/run.ann:

Aion::Run::RunRun#run=run:run „Executes Perl code in the context of the current project”
Aion::Run::RunsRun#list=run:runs „List of scripts”



use Aion::Format qw/trappout np/;
use Aion::Run::Runner;
use Aion::Run::RunRun;

trappout { Aion::Run::Runner->run("run", "1+2") } # -> np(3, caller_info => 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 INI config.

Used in the act command.

FEATURES

runs

Hash with commands. Loaded by default from the INI 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.