mojolicious::command::generate(3pm) [debian man page]
Mojolicious::Command::generate(3pm) User Contributed Perl Documentation Mojolicious::Command::generate(3pm)NAME
Mojolicious::Command::generate - Generator command
SYNOPSIS
use Mojolicious::Command::generate;
my $generator = Mojolicious::Command::generate->new;
$generator->run(@ARGV);
DESCRIPTION
Mojolicious::Command::generate lists available generators.
ATTRIBUTES
Mojolicious::Command::generate inherits all attributes from Mojolicious::Commands and implements the following new ones.
"description"
my $description = $generator->description;
$generator = $generator->description('Foo!');
Short description of this command, used for the command list.
"hint"
my $hint = $generator->hint;
$generator = $generator->hint('Foo!');
Short hint shown after listing available generator commands.
"message"
my $message = $generator->message;
$generator = $generator->message('Bar!');
Short usage message shown before listing available generator commands.
"namespaces"
my $namespaces = $generator->namespaces;
$generator = $generator->namespaces(['Mojo::Command::generate']);
Namespaces to search for available generator commands, defaults to Mojolicious::Command::generate and Mojo::Command::generate.
METHODS
Mojolicious::Command::generate inherits all methods from Mojolicious::Commands and implements the following new ones.
"help"
$generator->help('app');
Print usage information for generator command.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Command::generate(3pm)
Check Out this Related Man Page
Mojolicious::Plugin::Mount(3pm) User Contributed Perl Documentation Mojolicious::Plugin::Mount(3pm)NAME
Mojolicious::Plugin::Mount - Application mount plugin
SYNOPSIS
# Mojolicious
my $route = $self->plugin(Mount => {'/prefix' => '/home/sri/myapp.pl'});
# Mojolicious::Lite
my $route = plugin Mount => {'/prefix' => '/home/sri/myapp.pl'};
# Adjust the generated route
my $example = plugin Mount => {'/example' => '/home/sri/example.pl'};
$example->to(message => 'It works great!');
# Mount application with host
plugin Mount => {'mojolicio.us' => '/home/sri/myapp.pl'};
# Host and path
plugin Mount => {'mojolicio.us/myapp' => '/home/sri/myapp.pl'};
# Or even hosts with wildcard subdomains
plugin Mount => {'*.mojolicio.us/myapp' => '/home/sri/myapp.pl'};
DESCRIPTION
Mojolicious::Plugin::Mount is a plugin that allows you to mount whole Mojolicious applications.
The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it.
METHODS
Mojolicious::Plugin::Mount inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
my $route = $plugin->register($app, $conf);
Mount Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::Mount(3pm)
I am getting the error and need to know an easy way to find a line number.
m1: syntax error at line 468 : `'' unmatched
Is there a command or utility that will provide line numbers for my scripts when troubleshooting?
Thanks, (7 Replies)
Hey, got a few questions here for anyone who can help......
Command line to - display users using the system, but count them only once.
Command line to - use the lastcomm command to display how many times ive used grep in october.
Command line to - list all logged on users with at least 6... (3 Replies)
I've been googling for the following for the past few weeks several times, but haven't yet come across something that I could easily grasp. Can someone point me in the right direction please?
I'm trying to replace a character in file names, i.e. the character is a period, and I want to replace... (5 Replies)
Hi,
I need a command which will tell me definitely if a particular Linux System is Virtual (Guest) or Physical. Is there a command for this? Command will be preferable over any Script.
Thanks,
Vineet (3 Replies)
I need a command, which could run mutliple commands from a file.
Let's say, I have
mv fileA1 fileB1
mv fileA2 fileB2
.....
mv fileA20 fileB20
I put these commands in a file, then I need a command to run the file as a whole so that I don't need to type 20 times...
Anyone tell me how to... (8 Replies)
I would like to know what means this error and how to fix it
Command 'rm -f -r "0yfOYy-0008Nq-2j-32233-K"'
failed with return code 1 and error message
Thank you (3 Replies)
Hello.
Happy new year for everybody.
I would like to search for "menu generator" not for menu or generator.
Is it possible ?
I get an error : Array
What is the meaning ? (5 Replies)
Hello,
Can some one help me with do-while loop command and writing the out put to a file. Below is the command I want to use.
Command: netstat -an |grep 1421 |grep "ESTABLISHED" |wc -l
thanks in advance. (11 Replies)
Hi Folks,
I have a situation here, where no command is giving any output, and it's not even showing any error message also.
What could be the reason? (3 Replies)
On my MAC - I get Command not found error for some command like mvn , java_home etc .
I CD to the actual directory to take path out of picture and even then i get the command not found error .
anyone else have the same problem ? (3 Replies)