Pask - A Micro Task Framework
# create a new application $> script/pask.pl Demo # show all task $> perl Demo/pask # run task perl Demo/pask TaskName --Parameter Arguments
#=head1 TASK
# look at demos in the examples directory # create a task my $pask = Pask::task "Foo"; # or my $pask = Pask::task "Foo" => { description = "my description", parameter = {}, command = sub {} }; # set description $pask->set_description = ""; # set parameter $pask->set_parameter({ "bar" => [], "dep" => [{"dependency" => ["bar"]}] }); # set command $pask->set_command(sub { say "hello world!" });
To install Pask, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pask
CPAN shell
perl -MCPAN -e shell install Pask
For more information on module installation, please visit the detailed CPAN module installation guide.