| 1 | package Mojolicious::Command::Author::generate::makefile; | ||
| 2 | 1 | ▶ | use Mojo::Base 'Mojolicious::Command'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | has description => 'Generate "Makefile.PL"'; | |
| 5 | 1 | ▶ | has usage => sub { shift->extract_usage }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | sub run { shift->render_to_rel_file('makefile', 'Makefile.PL') } |
|
Subroutine
run: called CC=1 SCAR=0.0
Pod
documented
| |||
| 8 | |||
| 9 | 1 | 1; | |
| 10 | |||
| 11 | =encoding utf8 | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | Mojolicious::Command::Author::generate::makefile - Makefile generator command | ||
| 16 | |||
| 17 | =head1 SYNOPSIS | ||
| 18 | |||
| 19 | Usage: APPLICATION generate makefile [OPTIONS] | ||
| 20 | |||
| 21 | ./myapp.pl generate makefile | ||
| 22 | mojo generate makefile | ||
| 23 | |||
| 24 | Options: | ||
| 25 | -h, --help Show this summary of available options | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | L<Mojolicious::Command::Author::generate::makefile> generates C<Makefile.PL> files for applications. | ||
| 30 | |||
| 31 | This is a core command, that means it is always enabled and its code a good example for learning to build new commands, | ||
| 32 | you're welcome to fork it. | ||
| 33 | |||
| 34 | See L<Mojolicious::Commands/"COMMANDS"> for a list of commands that are available by default. | ||
| 35 | |||
| 36 | =head1 ATTRIBUTES | ||
| 37 | |||
| 38 | L<Mojolicious::Command::Author::generate::makefile> inherits all attributes from L<Mojolicious::Command> and implements | ||
| 39 | the following new ones. | ||
| 40 | |||
| 41 | =head2 description | ||
| 42 | |||
| 43 | my $description = $makefile->description; | ||
| 44 | $makefile = $makefile->description('Foo'); | ||
| 45 | |||
| 46 | Short description of this command, used for the command list. | ||
| 47 | |||
| 48 | =head2 usage | ||
| 49 | |||
| 50 | my $usage = $makefile->usage; | ||
| 51 | $makefile = $makefile->usage('Foo'); | ||
| 52 | |||
| 53 | Usage information for this command, used for the help screen. | ||
| 54 | |||
| 55 | =head1 METHODS | ||
| 56 | |||
| 57 | L<Mojolicious::Command::Author::generate::makefile> inherits all methods from L<Mojolicious::Command> and implements | ||
| 58 | the following new ones. | ||
| 59 | |||
| 60 | =head2 run | ||
| 61 | |||
| 62 | $makefile->run(@ARGV); | ||
| 63 | |||
| 64 | Run this command. | ||
| 65 | |||
| 66 | =head1 SEE ALSO | ||
| 67 | |||
| 68 | L<Mojolicious>, L<Mojolicious::Guides>, L<https://mojolicious.org>. | ||
| 69 | |||
| 70 | =cut | ||
| 71 | |||
| 72 | __DATA__ | ||