X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FRunnable.pm;h=49b8d7dd64accbfd84e7b8f01498e477f86ca846;hb=fc5720d528d00e75786cafa4213b97a79eaa8bb9;hp=a2a65bd752cb92b5fc4484e511a37236356cf086;hpb=4fc441ce54c886ebb468f3a2e5bf6fe8f88f7553;p=gitmo%2FMooseX-Runnable.git diff --git a/lib/MooseX/Runnable.pm b/lib/MooseX/Runnable.pm index a2a65bd..49b8d7d 100644 --- a/lib/MooseX/Runnable.pm +++ b/lib/MooseX/Runnable.pm @@ -1,7 +1,7 @@ package MooseX::Runnable; use Moose::Role; -our $VERSION = '0.00_02'; +our $VERSION = '0.01'; requires 'run'; @@ -54,6 +54,13 @@ let's the computer abstract away some of the tedium this entails. =head1 REQUIRED METHODS +=head2 run + +Your class must implement C. It accepts the commandline args +(that were not consumed by another parser, if applicable) and returns +an integer representing the UNIX exit value. C means +success. + =head1 THINGS YOU GET =head2 C @@ -79,3 +86,35 @@ or: If you don't want to invoke your app with C, you can write a custom version using L. + +=head1 ARCHITECTURE + +C is designed to be extensible; users can run plugins +from the command-line, and application developers can add roles to +their class to control behavior. + +For example, if you consume L, the +command-line will be parsed with C. Any recognized +args will be used to instantiate your class, and any extra args will +be passed to C. + +=head1 BUGS + +Many of the plugins shipped are unstable; they may go away, change, +break, etc. If there is no documentation for a plugin, it is probably +just a prototype. + +=head1 REPOSITORY + +L + +=head1 AUTHOR + +Jonathan Rockway C<< >> + +=head1 COPYRIGHT + +Copyright (c) 2009 Jonathan Rockway + +This module is Free Software, you can redistribute it under the same +terms as Perl itself.