Skip to content

Commit

Permalink
a few more command examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 25, 2014
1 parent 763db50 commit 8490e2a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/Mojolicious/Command/daemon.pm
Expand Up @@ -37,6 +37,9 @@ Mojolicious::Command::daemon - Daemon command
Usage: APPLICATION daemon [OPTIONS]
./myapp.pl daemon -m production -l http://*:8080
./myapp.pl daemon -l http://127.0.0.1:8080 -l https://[::]:8081
Options:
-b, --backlog <size> Listen backlog size, defaults to SOMAXCONN.
-c, --clients <number> Maximum number of concurrent clients,
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Command/eval.pm
Expand Up @@ -32,9 +32,9 @@ Mojolicious::Command::eval - Eval command
Usage: APPLICATION eval [OPTIONS] CODE
mojo eval 'say app->ua->get("/")->res->body'
mojo eval -v 'app->home'
mojo eval -V 'app->renderer->paths'
./myapp.pl eval 'say app->ua->get("/")->res->body'
./myapp.pl eval -v 'app->home'
./myapp.pl eval -V 'app->renderer->paths'
Options:
-v, --verbose Print return value to STDOUT.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -131,7 +131,7 @@ Mojolicious::Command::get - Get command
Usage: APPLICATION get [OPTIONS] URL [SELECTOR|JSON-POINTER] [COMMANDS]
mojo get /
./myapp.pl get /
mojo get mojolicio.us
mojo get -v -r google.com
mojo get -M POST -c 'trololo' mojolicio.us
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Command/prefork.pm
Expand Up @@ -48,6 +48,9 @@ Mojolicious::Command::prefork - Prefork command
Usage: APPLICATION prefork [OPTIONS]
./myapp.pl prefork -m production -l http://*:8080
./myapp.pl prefork -l http://127.0.0.1:8080 -l https://[::]:8081
Options:
-A, --accepts <number> Number of connections for workers to
accept, defaults to 1000.
Expand Down
4 changes: 4 additions & 0 deletions lib/Mojolicious/Command/test.pm
Expand Up @@ -47,6 +47,10 @@ Mojolicious::Command::test - Test command
Usage: APPLICATION test [OPTIONS] [TESTS]
./myapp.pl test -v
./myapp.pl test t/foo.t
./myapp.pl test t/foo/*.t
Options:
-v, --verbose Print verbose debug information to STDERR.
Expand Down

0 comments on commit 8490e2a

Please sign in to comment.