NAME
Plack::App::CLI - Command Line Interface to PSGI
SYNOPIS
use Plack::App::CLI;
Plack::App::CLI->run(FILENAME || CODEREF);
Run handler using run method accpeting a code reference of the application or .psgi file.
DESCRIPTION
Plack::App::CLI is a handler for using psgi application using console. Simply pass options and path including query strings. Also POST is supported.
USAGE
echo "username=john&password=secret" | ./script.pl -p /form
Script accepts options and path to process. Example above pretty much equals to
POST /form HTTP/1.0
username=john&password=secret
FUNCTIONS
- run
-
Runs the application
OPTIONS
- -v
-
prints version
- -E environment
-
Plack app environment, default deployment
- -n
-
suppress colored output
- -X POST|GET
-
use POST OR GET method (default)
- -o file
-
print body into file
- -H header
-
add header
SEE ALSO
AUTHOR
Dalibor Horinek <dal@horinek.net>
LICENSE
Copyright (c) 2012, Dalibor Horinek <dal@horinek.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic for details.