Skip to content

Commit

Permalink
more command examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 18, 2015
1 parent 8761a8f commit 028455e
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
Expand Up @@ -4,7 +4,7 @@
- Added support for new HTTP status code.
- Improved router performance.
- Improved Mojo::DOM::CSS performance slightly. (jamadam)
- Fixed a few case-sensitivity and An+B notation issues in Mojo::DOM::CSS.
- Fixed a few case-sensitivity and An+B notation bugs in Mojo::DOM::CSS.
(jamadam)

6.31 2015-11-13
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Command/cgi.pm
Expand Up @@ -25,6 +25,8 @@ Mojolicious::Command::cgi - CGI command
Usage: APPLICATION cgi [OPTIONS]
./myapp.pl cgi
Options:
-h, --help Show this summary of available options
--home <path> Path to home directory of your application, defaults to
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Command/generate.pm
Expand Up @@ -24,6 +24,9 @@ Mojolicious::Command::generate - Generator command
Usage: APPLICATION generate GENERATOR [OPTIONS]
mojo generate app
mojo generate lite_app
=head1 DESCRIPTION
L<Mojolicious::Command::generate> lists available generators.
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Command/generate/app.pm
Expand Up @@ -55,6 +55,9 @@ Mojolicious::Command::generate::app - App generator command
Usage: APPLICATION generate app [OPTIONS] [NAME]
mojo generate app
mojo generate app TestApp
Options:
-h, --help Show this summary of available options
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Command/generate/lite_app.pm
Expand Up @@ -23,6 +23,9 @@ Mojolicious::Command::generate::lite_app - Lite app generator command
Usage: APPLICATION generate lite_app [OPTIONS] [NAME]
mojo generate lite_app
mojo generate lite_app foo.pl
Options:
-h, --help Show this summary of available options
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Command/generate/makefile.pm
Expand Up @@ -20,6 +20,8 @@ Mojolicious::Command::generate::makefile - Makefile generator command
Usage: APPLICATION generate makefile [OPTIONS]
mojo generate makefile
Options:
-h, --help Show this summary of available options
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Command/generate/plugin.pm
Expand Up @@ -37,6 +37,9 @@ Mojolicious::Command::generate::plugin - Plugin generator command
Usage: APPLICATION generate plugin [OPTIONS] [NAME]
mojo generate plugin
mojo generate plugin TestPlugin
Options:
-h, --help Show this summary of available options
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Command/inflate.pm
Expand Up @@ -40,6 +40,8 @@ Mojolicious::Command::inflate - Inflate command
Usage: APPLICATION inflate [OPTIONS]
./myapp.pl inflate
Options:
-h, --help Show this summary of available options
--home <path> Path to home directory of your application, defaults to
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Command/psgi.pm
Expand Up @@ -20,6 +20,8 @@ Mojolicious::Command::psgi - PSGI command
Usage: APPLICATION psgi [OPTIONS]
./myapp.pl psgi
Options:
-h, --help Show this summary of available options
--home <path> Path to home directory of your application, defaults to
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Command/routes.pm
Expand Up @@ -64,6 +64,9 @@ Mojolicious::Command::routes - Routes command
Usage: APPLICATION routes [OPTIONS]
./myapp.pl routes
./myapp.pl routes -v
Options:
-h, --help Show this summary of available options
--home <path> Path to home directory of your application, defaults to
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Command/version.pm
Expand Up @@ -55,6 +55,8 @@ Mojolicious::Command::version - Version command
Usage: APPLICATION version [OPTIONS]
mojo version
Options:
-h, --help Show this summary of available options
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Pattern.pm
Expand Up @@ -52,8 +52,8 @@ sub parse {
my $pattern = @_ % 2 ? (shift // '/') : '/';
$pattern =~ s!^/*|/+!/!g;
return $self->constraints({@_}) if $pattern eq '/';
$pattern =~ s!/$!!;

$pattern =~ s!/$!!;
return $self->constraints({@_})->_tokenize($pattern);
}

Expand Down

0 comments on commit 028455e

Please sign in to comment.