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