line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Command::Author::generate::cpanfile; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
486
|
use Mojo::Base 'Mojolicious::Command'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
has description => 'Generate "cpanfile"'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has usage => sub { shift->extract_usage }; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
1
|
18138
|
sub run { shift->render_to_rel_file('cpanfile', 'cpanfile') } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=encoding utf8 |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Mojolicious::Command::Author::generate::cpanfile - cpanfile generator command |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SYNOPSIS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Usage: APPLICATION generate cpanfile [OPTIONS] |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
mojo generate cpanfile |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Options: |
28
|
|
|
|
|
|
|
-h, --help Show this summary of available options |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 DESCRIPTION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
L generates C files |
33
|
|
|
|
|
|
|
for applications. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
L inherits all attributes from |
38
|
|
|
|
|
|
|
L and implements the following new ones. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 description |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
my $description = $cpanfile->description; |
43
|
|
|
|
|
|
|
$cpanfile = $cpanfile->description('Foo'); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Short description of this command, used for the command list. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 usage |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my $usage = $cpanfile->usage; |
50
|
|
|
|
|
|
|
$cpanfile = $cpanfile->usage('Foo'); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Usage information for this command, used for the help screen. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 METHODS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
L inherits all methods from |
57
|
|
|
|
|
|
|
L and implements the following new ones. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 run |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
$cpanfile->run(@ARGV); |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Run this command. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 LICENSE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Copyright (C) Bernhard Graf. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
70
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 AUTHOR |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Bernhard Graf Eaugensalat@gmail.comE |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 SEE ALSO |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
L, L, L. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=cut |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
__DATA__ |