line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: install your dist |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use Dist::Zilla::Pragmas; |
4
|
4
|
|
|
4
|
|
2479
|
|
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
use Dist::Zilla::App -command; |
6
|
4
|
|
|
4
|
|
27
|
|
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
27
|
|
7
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
8
|
|
|
|
|
|
|
#pod |
9
|
|
|
|
|
|
|
#pod Installs your distribution using a specified command. |
10
|
|
|
|
|
|
|
#pod |
11
|
|
|
|
|
|
|
#pod dzil install [--install-command="cmd"] |
12
|
|
|
|
|
|
|
#pod |
13
|
|
|
|
|
|
|
#pod =cut |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
1
|
|
#pod =head1 EXAMPLE |
16
|
|
|
|
|
|
|
#pod |
17
|
|
|
|
|
|
|
#pod $ dzil install |
18
|
|
|
|
|
|
|
#pod $ dzil install --install-command="cpan ." |
19
|
|
|
|
|
|
|
#pod |
20
|
|
|
|
|
|
|
#pod =cut |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
[ 'install-command=s', 'command to run to install (e.g. "cpan .")' ], |
23
|
|
|
|
|
|
|
[ 'keep-build-dir|keep' => 'keep the build directory even after a success' ], |
24
|
|
|
|
|
|
|
} |
25
|
0
|
|
|
0
|
1
|
|
|
26
|
|
|
|
|
|
|
#pod =head1 OPTIONS |
27
|
|
|
|
|
|
|
#pod |
28
|
|
|
|
|
|
|
#pod =head2 --install-command |
29
|
|
|
|
|
|
|
#pod |
30
|
|
|
|
|
|
|
#pod This defines what command to run after building the dist in the dist dir. |
31
|
|
|
|
|
|
|
#pod |
32
|
|
|
|
|
|
|
#pod Any value that works with L<C<system>|perlfunc/system> is accepted. |
33
|
|
|
|
|
|
|
#pod |
34
|
|
|
|
|
|
|
#pod If not specified, calls (roughly): |
35
|
|
|
|
|
|
|
#pod |
36
|
|
|
|
|
|
|
#pod cpanm . |
37
|
|
|
|
|
|
|
#pod |
38
|
|
|
|
|
|
|
#pod For more information, look at the L<install|Dist::Zilla::Dist::Builder/install> method in |
39
|
|
|
|
|
|
|
#pod Dist::Zilla. |
40
|
|
|
|
|
|
|
#pod |
41
|
|
|
|
|
|
|
#pod =cut |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
my ($self, $opt, $arg) = @_; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
$self->zilla->install({ |
46
|
|
|
|
|
|
|
$opt->install_command |
47
|
0
|
|
|
0
|
1
|
|
? (install_command => [ $opt->install_command ]) |
48
|
|
|
|
|
|
|
: (), |
49
|
0
|
0
|
|
|
|
|
$opt->keep_build_dir |
|
|
0
|
|
|
|
|
|
50
|
|
|
|
|
|
|
? (keep_build_dir => 1) |
51
|
|
|
|
|
|
|
: (), |
52
|
|
|
|
|
|
|
}); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=pod |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=encoding UTF-8 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 NAME |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Dist::Zilla::App::Command::install - install your dist |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 VERSION |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
version 6.028 |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SYNOPSIS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Installs your distribution using a specified command. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
dzil install [--install-command="cmd"] |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 PERL VERSION |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
79
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
80
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
81
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
84
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
85
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
86
|
|
|
|
|
|
|
the minimum required perl. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 EXAMPLE |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
$ dzil install |
91
|
|
|
|
|
|
|
$ dzil install --install-command="cpan ." |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 OPTIONS |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head2 --install-command |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This defines what command to run after building the dist in the dist dir. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Any value that works with L<C<system>|perlfunc/system> is accepted. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
If not specified, calls (roughly): |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
cpanm . |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
For more information, look at the L<install|Dist::Zilla::Dist::Builder/install> method in |
106
|
|
|
|
|
|
|
Dist::Zilla. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head1 AUTHOR |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Ricardo SIGNES. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
117
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |