Mojolicious::Command::scaffold - Scaffold command
Usage: APPLICATION scaffold [OPTIONS] ./myapp.pl scaffold ./myapp.pl scaffold controller Options: 'base|b:s', 'controller', 'name=s', 'pretend', 'preview', 'routes', 'table=s', 'template', 'tests', -b, --base <string> Base controller --name <string> Name of the controller, command that you are trying to create --action <string> Default action name for controller --pretent When it's present, the command will just output the content of the files that are about to be created --preview When it's present, a confirmation message will appear before saving a file --create Tells if you are creating/altering a table --table <string> The name of the table --tests Will create tests --template Will create a template
Mojolicious::Command::scaffold helps you easily create commands, controllers, migrations, routes, tasks and templates
See "COMMANDS" in Mojolicious::Commands for a list of commands that are available by default.
Mojolicious::Command::scaffold inherits all attributes from Mojo::Console and implements the following new ones.
my $description = $scaffold->description; $scaffold = $scaffold->description('Foo');
Short description of this command, used for the command list.
my $usage = $scaffold->usage; $scaffold = $scaffold->usage('Foo');
Usage information for this command, used for the help screen.
Mojolicious::Command::scaffold inherits all methods from Mojo::Console and implements the following new ones.
$scaffold->run(@ARGV);
Run this command.
Mojolicious, Mojolicious::Guides, https://mojolicious.org.
To install Mojolicious::Command::scaffold, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Command::scaffold
CPAN shell
perl -MCPAN -e shell install Mojolicious::Command::scaffold
For more information on module installation, please visit the detailed CPAN module installation guide.