line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::App::Command::authordeps 6.030; |
2
|
|
|
|
|
|
|
# ABSTRACT: List your distribution's author dependencies |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
2654
|
use Dist::Zilla::Pragmas; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
27
|
use Dist::Zilla::App -command; |
|
4
|
|
|
|
|
27
|
|
|
4
|
|
|
|
|
57
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
9
|
|
|
|
|
|
|
#pod |
10
|
|
|
|
|
|
|
#pod $ dzil authordeps |
11
|
|
|
|
|
|
|
#pod |
12
|
|
|
|
|
|
|
#pod This will scan the F<dist.ini> file and print a list of plugin modules that |
13
|
|
|
|
|
|
|
#pod probably need to be installed for the dist to be buildable. This is a very |
14
|
|
|
|
|
|
|
#pod naive scan, but tends to be pretty accurate. Modules can be added to its |
15
|
|
|
|
|
|
|
#pod results by using special comments in the form: |
16
|
|
|
|
|
|
|
#pod |
17
|
|
|
|
|
|
|
#pod ; authordep Some::Package |
18
|
|
|
|
|
|
|
#pod |
19
|
|
|
|
|
|
|
#pod In order to add authordeps to all distributions that use a certain plugin bundle |
20
|
|
|
|
|
|
|
#pod (or plugin), just list them as prereqs of that bundle (e.g.: using |
21
|
|
|
|
|
|
|
#pod L<Dist::Zilla::Plugin::Prereqs> ). |
22
|
|
|
|
|
|
|
#pod |
23
|
|
|
|
|
|
|
#pod =cut |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
sub abstract { "list your distribution's author dependencies" } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub opt_spec { |
28
|
|
|
|
|
|
|
return ( |
29
|
0
|
|
|
0
|
1
|
|
[ 'root=s' => 'the root of the dist; defaults to .' ], |
30
|
|
|
|
|
|
|
[ 'missing' => 'list only the missing dependencies' ], |
31
|
|
|
|
|
|
|
[ 'versions' => 'include required version numbers in listing' ], |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub execute { |
36
|
0
|
|
|
0
|
1
|
|
my ($self, $opt, $arg) = @_; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
require Dist::Zilla::Path; |
39
|
0
|
|
|
|
|
|
require Dist::Zilla::Util::AuthorDeps; |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
0
|
|
|
|
my $deps = Dist::Zilla::Util::AuthorDeps::format_author_deps( |
42
|
|
|
|
|
|
|
Dist::Zilla::Util::AuthorDeps::extract_author_deps( |
43
|
|
|
|
|
|
|
Dist::Zilla::Path::path($opt->root // '.'), |
44
|
|
|
|
|
|
|
$opt->missing, |
45
|
|
|
|
|
|
|
), $opt->versions |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
|
48
|
0
|
0
|
|
|
|
|
$self->log($deps) if $deps; |
49
|
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
return; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=pod |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=encoding UTF-8 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 NAME |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Dist::Zilla::App::Command::authordeps - List your distribution's author dependencies |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 VERSION |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
version 6.030 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 SYNOPSIS |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
$ dzil authordeps |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This will scan the F<dist.ini> file and print a list of plugin modules that |
74
|
|
|
|
|
|
|
probably need to be installed for the dist to be buildable. This is a very |
75
|
|
|
|
|
|
|
naive scan, but tends to be pretty accurate. Modules can be added to its |
76
|
|
|
|
|
|
|
results by using special comments in the form: |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
; authordep Some::Package |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
In order to add authordeps to all distributions that use a certain plugin bundle |
81
|
|
|
|
|
|
|
(or plugin), just list them as prereqs of that bundle (e.g.: using |
82
|
|
|
|
|
|
|
L<Dist::Zilla::Plugin::Prereqs> ). |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 PERL VERSION |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
87
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
88
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
89
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
92
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
93
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
94
|
|
|
|
|
|
|
the minimum required perl. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 AUTHOR |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Ricardo SIGNES. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
105
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |