File Coverage

blib/lib/Dist/Zilla/App/Command/version.pm
Criterion Covered Total %
statement 11 13 84.6
branch 0 2 0.0
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 15 21 71.4


line stmt bran cond sub pod time code
1             # ABSTRACT: display dzil's version
2              
3             use Dist::Zilla::Pragmas;
4 4     4   2494  
  4         14  
  4         27  
5             use Dist::Zilla::App -command;
6 4     4   28 use App::Cmd::Command::version;
  4         11  
  4         30  
7 4     4   3052 BEGIN {
  4         1407  
  4         260  
8             ## parent and base dont work here. ??? -- kentnl 2014-10-31
9             our @ISA;
10 4     4   17 unshift @ISA, 'App::Cmd::Command::version';
11 4         394 }
12              
13             #pod =head1 SYNOPSIS
14             #pod
15             #pod Print dzil version
16             #pod
17             #pod $ dzil --version or $dzil version
18             #pod
19             #pod =cut
20              
21             my $version_pkg = $_[0]->version_package;
22             my $version = ( $version_pkg->VERSION ?
23 0     0 0   $version_pkg->VERSION :
24 0 0         'dev' );
25             }
26              
27             1;
28              
29              
30             =pod
31              
32             =encoding UTF-8
33              
34             =head1 NAME
35              
36             Dist::Zilla::App::Command::version - display dzil's version
37              
38             =head1 VERSION
39              
40             version 6.028
41              
42             =head1 SYNOPSIS
43              
44             Print dzil version
45              
46             $ dzil --version or $dzil version
47              
48             =head1 PERL VERSION
49              
50             This module should work on any version of perl still receiving updates from
51             the Perl 5 Porters. This means it should work on any version of perl released
52             in the last two to three years. (That is, if the most recently released
53             version is v5.40, then this module should work on both v5.40 and v5.38.)
54              
55             Although it may work on older versions of perl, no guarantee is made that the
56             minimum required version will not be increased. The version may be increased
57             for any reason, and there is no promise that patches will be accepted to lower
58             the minimum required perl.
59              
60             =head1 AUTHOR
61              
62             Ricardo SIGNES 😏 <cpan@semiotic.systems>
63              
64             =head1 COPYRIGHT AND LICENSE
65              
66             This software is copyright (c) 2022 by Ricardo SIGNES.
67              
68             This is free software; you can redistribute it and/or modify it under
69             the same terms as the Perl 5 programming language system itself.
70              
71             =cut