command Scaffold a mojolicious command
controller Scaffold a mojolicious controller
migration Scaffold a migration
process Process content for a file
routes Scaffold a mojolicious routes file
run Run scaffold command
stub Open stub file and replace thing
task Scaffold a mojolicious task file
task Scaffold a mojolicious template file
NAME
Mojolicious::Command::scaffold - Scaffold command
SYNOPSIS
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
DESCRIPTION
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.
ATTRIBUTES
Mojolicious::Command::scaffold inherits all attributes from Mojo::Console and implements the following new ones.
description
my $description = $scaffold->description;
$scaffold = $scaffold->description('Foo');
Short description of this command, used for the command list.
usage
my $usage = $scaffold->usage;
$scaffold = $scaffold->usage('Foo');
Usage information for this command, used for the help screen.
METHODS
Mojolicious::Command::scaffold inherits all methods from Mojo::Console and implements the following new ones.
run
$scaffold->run(@ARGV);
Run this command.