NAME
Mojolicious::Commands - Commands
SYNOPSIS
use Mojolicious::Commands;
# Command line interface
my $commands = Mojolicious::Commands->new;
$commands->run(@ARGV);
DESCRIPTION
Mojolicous::Commands is the interactive command line interface to the Mojolicious framework. It will automatically detect available commands in the Mojolicious::Command namespace.
These commands are available by default.
help-
mojo mojo helpList available commands with short descriptions.
mojo help <command>List available options for the command with short descriptions.
cgi-
mojo cgi script/myapp cgiStart application with CGI backend.
daemon-
mojo cgi script/myapp daemonStart application with standalone HTTP 1.1 server backend.
fastcgi-
mojo fastcgi script/myapp fastcgiStart application with FastCGI backend.
generate-
mojo generate mojo generate helpList available generator commands with short descriptions.
mojo generate help <generator>List available options for generator command with short descriptions.
generate app-
mojo generate app <AppName>Generate application directory structure for a fully functional Mojolicious application.
generate lite_app-
mojo generate lite_appGenerate a fully functional Mojolicious::Lite application.
generate makefile-
mojo generate makefileGenerate
Makefile.PLfile for application. get-
mojo get http://mojolicious.org script/myapp get /fooPerform GET request to remote host or local application.
inflate-
myapp.pl inflateTurn embedded files from the
DATAsection into real files. routes-
myapp.pl routes script/myapp routesList application routes.
test-
mojo test script/myapp test script/myapp test t/foo.tRuns application tests from the
tdirectory. version-
mojo versionList version information for installed core and optional modules, very useful for debugging.
ATTRIBUTES
Mojolicious::Commands inherits all attributes from Mojo::Command and implements the following new ones.
hint
my $hint = $commands->hint;
$commands = $commands->hint('Foo!');
Short hint shown after listing available commands.
namespaces
my $namespaces = $commands->namespaces;
$commands = $commands->namespaces(['Mojolicious::Commands']);
Namespaces to search for available commands, defaults to Mojo::Command and Mojolicious::Command.
METHODS
Mojolicious::Commands inherits all methods from Mojo::Command.