1Mojolicious::Command::eUvsaelr(3C)ontributed Perl DocumeMnotjaotliiocnious::Command::eval(3)
2
3
4

NAME

6       Mojolicious::Command::eval - Eval command
7

SYNOPSIS

9         Usage: APPLICATION eval [OPTIONS] CODE
10
11           ./myapp.pl eval 'say app->ua->get("/")->result->body'
12           ./myapp.pl eval 'say for sort keys %{app->renderer->helpers}'
13           ./myapp.pl eval -v 'app->home'
14           ./myapp.pl eval -V 'app->renderer->paths'
15
16         Options:
17           -h, --help          Show this summary of available options
18               --home <path>   Path to home directory of your application, defaults to
19                               the value of MOJO_HOME or auto-detection
20           -m, --mode <name>   Operating mode for your application, defaults to the
21                               value of MOJO_MODE/PLACK_ENV or "development"
22           -v, --verbose       Print return value to STDOUT
23           -V                  Print returned data structure to STDOUT
24

DESCRIPTION

26       Mojolicious::Command::eval runs code against applications.
27
28       This is a core command, that means it is always enabled and its code a
29       good example for learning to build new commands, you're welcome to fork
30       it.
31
32       See "COMMANDS" in Mojolicious::Commands for a list of commands that are
33       available by default.
34

ATTRIBUTES

36       Mojolicious::Command::eval inherits all attributes from
37       Mojolicious::Command and implements the following new ones.
38
39   description
40         my $description = $eval->description;
41         $eval           = $eval->description('Foo');
42
43       Short description of this command, used for the command list.
44
45   usage
46         my $usage = $eval->usage;
47         $eval     = $eval->usage('Foo');
48
49       Usage information for this command, used for the help screen.
50

METHODS

52       Mojolicious::Command::eval inherits all methods from
53       Mojolicious::Command and implements the following new ones.
54
55   run
56         $eval->run(@ARGV);
57
58       Run this command.
59

SEE ALSO

61       Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
62
63
64
65perl v5.28.0                      2018-05-08     Mojolicious::Command::eval(3)
Impressum