MVC::Neaf::CLI - Command line debugger for Not Even A Framework
Run your applications from command line, with various overrides.
This is only useful for debugging, slightly better than CGI.pm's though.
perl application.pl --post /foo/bar arg=42
--post - set method to POST.
--method METHOD - set method to anything else.
--upload id=/path/to/file - add upload. Requires --post.
--cookie name="value" - add cookie.
--header name="value" - set http header.
--view - force (JS,TT,Dumper) view.
--list - don't process request, instead print routes configured in the application.
--help - don't process request, instead display a brief usage message
The usage doesn't expect these are called directly.
But just for the sake of completeness...
Run the application. This reads command line options, as shown in the summary above.
$app is an MVC::Neaf object.
NOTE Spoils @AGRV.
Display help message and exit(0).
NOTE exit() used.
List registered Neaf routes.
To install MVC::Neaf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MVC::Neaf
CPAN shell
perl -MCPAN -e shell install MVC::Neaf
For more information on module installation, please visit the detailed CPAN module installation guide.