Footprintless::CommandRunner - A contract for an command runner
version 1.20
The abstract base class for all command runners. This class defines the contract that all command runners must adhere to. Implementation classes should implement _run($command, %runner_options).
_run($command, %runner_options)
See implementation classes.
Returns the last command run by this command runner.
Returns the message from die, if the command runner died unexpectedly.
die
Returns the exit code from running the command.
Returns the text written to STDERR. This will only be available if the command was run without any err_??? options. See run for more details.
STDERR
err_???
Returns the text written to STDOUT. This will only be available if the command was run without any out_??? options. See run for more details.
STDOUT
out_???
Runs $command. The supported runner options are:
$command
A sub that will be called once for each line written to STDERR. The only argument to the sub will be $line.
$line
A handle to use as STDERR for the command.
A handle to use as STDIN for the command.
STDIN
A sub that will be called once for each line written to STDOUT. The only argument to the sub will be $line.
A handle to use as STDOUT for the command.
Calls run and will die with an Footprintless::CommandRunner::ExecutionException if the exit code is non-zero.
Lucas Theisen <lucastheisen@pastdev.com>
This software is copyright (c) 2016 by Lucas Theisen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please see those modules/websites for more information related to this module.
Footprintless
Footprintless::Command
Footprintless::CommandOptionsFactory
Footprintless::CommandRunner::ExecutionException
To install Footprintless, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Footprintless
CPAN shell
perl -MCPAN -e shell install Footprintless
For more information on module installation, please visit the detailed CPAN module installation guide.