App::vaporcalc::Role::UI::PrepareCmd
package MyCmdEngine; use Moo; with 'App::vaporcalc::Role::UI::PrepareCmd'; package main; use List::Objects::WithUtils 'array'; use App::vaporcalc::Recipe; my $recipe = App::vaporcalc::Recipe->new( # See App::vaporcalc::Recipe ); my $cmdeng = MyCmdEngine->new; my $cmd = $cmdeng->prepare_cmd( recipe => $recipe, verb => 'set', subject => 'nic base', params => array('36'), );
A Moo::Role for producing vaporcalc command objects.
The prefix to use when constructing command object class names from a given subject.
Defaults to App::vaporcalc::Cmd::Subject::
App::vaporcalc::Cmd::Subject::
Takes a App::vaporcalc::Recipe, an optional verb (action to perform), a subject (used to find/build command objects), and an optional set of parameters (as an ARRAY or ARRAY-type object). See "SYNOPSIS".
Jon Portnoy <avenj@cobaltirc.org>
To install App::vaporcalc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::vaporcalc
CPAN shell
perl -MCPAN -e shell install App::vaporcalc
For more information on module installation, please visit the detailed CPAN module installation guide.