Bat-Interpreter
view release on metacpan or search on metacpan
lib/Bat/Interpreter/Role/Executor.pm view on Meta::CPAN
package Bat::Interpreter::Role::Executor;
use utf8;
use Moo::Role;
use namespace::autoclean;
our $VERSION = '0.025'; # VERSION
requires 'execute_command';
requires 'execute_for_command';
1;
__END__
=pod
=encoding utf-8
=head1 NAME
Bat::Interpreter::Role::Executor
=head1 VERSION
version 0.025
=head1 DESCRIPTION
Role for executing the commands in the bat files. With this role you can just
print the commands that are going to be executed (dry run), or maybe in another
machine (via SSH, RPC, or whatever).
See Bat::Interpreter::Delegate::Executor::DryRunner or Bat::Interpreter::Delegate::Executor::PartialDryRunner
for an example of implementation
=head1 NAME
Bat::Interpreter::Role::Executor - Role for executing the commands in the bat files
=head1 METHODS
=head2 execute_for_command
Execute commands for use in FOR expressions.
This is usually used to capture output and
implement some logic inside the bat/cmd file.
=head2 execute_command
Execute general commands
=head1 AUTHOR
Pablo RodrÃguez González <pablo.rodriguez.gonzalez@gmail.com>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2022 by Pablo RodrÃguez González.
This is free software, licensed under:
The MIT (X11) License
( run in 1.794 second using v1.01-cache-2.11-cpan-39bf76dae61 )