1Mojolicious::Commands(3U)ser Contributed Perl DocumentatiMoonjolicious::Commands(3)
2
3
4
6 Mojolicious::Commands - Commands
7
9 use Mojo::Commands;
10
11 # Command line interface
12 my $commands = Mojolicious::Commands->new;
13 $commands->run(@ARGV);
14
16 Mojolicous::Commands is the interactive command line interface to the
17 Mojolicious framework. It will automatically detect available commands
18 in the Mojolicious::Command namespace.
19
20 These commands are available by default in addition to the commands
21 listed in Mojo::Commands.
22
23 "generate"
24 mojolicious generate
25 mojolicious generate help
26
27 List available generator commands with short descriptions.
28
29 mojolicious generate help <generator>
30
31 List available options for generator command with short
32 descriptions.
33
34 "generate app"
35 mojolicious generate app <AppName>
36
37 Generate application directory structure for a fully functional
38 Mojolicious application.
39
40 "generate lite_app"
41 mojolicious generate lite_app
42
43 Generate a fully functional Mojolicious::Lite application.
44
45 "inflate"
46 myapp.pl inflate
47
48 Turn embedded files from the "DATA" section into real files.
49
50 "routes"
51 myapp.pl routes
52 script/myapp routes
53
54 List application routes.
55
57 Mojolicious::Commands inherits all attributes from Mojo::Commands and
58 implements the following new ones.
59
60 "namespaces"
61 my $namespaces = $commands->namespaces;
62 $commands = $commands->namespaces(['Mojolicious::Commands']);
63
64 Namespaces to search for available commands, defaults to Mojo::Command
65 and Mojolicious::Command.
66
68 Mojolicious::Commands inherits all methods from Mojo::Commands.
69
71 Mojolicious, Mojolicious::Guides, <http://mojolicious.org>.
72
73
74
75perl v5.12.3 2010-08-12 Mojolicious::Commands(3)