File Coverage

blib/lib/Dist/Zilla/App/Command/nop.pm
Criterion Covered Total %
statement 6 10 60.0
branch n/a
condition n/a
subroutine 2 5 40.0
pod 3 3 100.0
total 11 18 61.1


line stmt bran cond sub pod time code
1             package Dist::Zilla::App::Command::nop 6.030;
2             # ABSTRACT: initialize dzil, then exit
3              
4 4     4   2714 use Dist::Zilla::Pragmas;
  4         10  
  4         25  
5              
6 4     4   28 use Dist::Zilla::App -command;
  4         25  
  4         32  
7              
8             #pod =head1 SYNOPSIS
9             #pod
10             #pod This command does nothing. It initializes Dist::Zilla, then exits. This is
11             #pod useful to see the logging output of plugin initialization.
12             #pod
13             #pod dzil nop -v
14             #pod
15             #pod Seriously, this command is almost entirely for diagnostic purposes. Don't
16             #pod overthink it, okay?
17             #pod
18             #pod =cut
19              
20 0     0 1   sub abstract { 'do nothing: initialize dzil, then exit' }
21              
22             sub description {
23 0     0 1   "This command does nothing but initialize Dist::Zilla and exit.\n" .
24             "It is sometimes useful for diagnostic purposes."
25             }
26              
27             sub execute {
28 0     0 1   my ($self, $opt, $arg) = @_;
29              
30 0           $self->zilla;
31             }
32              
33             1;
34              
35             __END__
36              
37             =pod
38              
39             =encoding UTF-8
40              
41             =head1 NAME
42              
43             Dist::Zilla::App::Command::nop - initialize dzil, then exit
44              
45             =head1 VERSION
46              
47             version 6.030
48              
49             =head1 SYNOPSIS
50              
51             This command does nothing. It initializes Dist::Zilla, then exits. This is
52             useful to see the logging output of plugin initialization.
53              
54             dzil nop -v
55              
56             Seriously, this command is almost entirely for diagnostic purposes. Don't
57             overthink it, okay?
58              
59             =head1 PERL VERSION
60              
61             This module should work on any version of perl still receiving updates from
62             the Perl 5 Porters. This means it should work on any version of perl released
63             in the last two to three years. (That is, if the most recently released
64             version is v5.40, then this module should work on both v5.40 and v5.38.)
65              
66             Although it may work on older versions of perl, no guarantee is made that the
67             minimum required version will not be increased. The version may be increased
68             for any reason, and there is no promise that patches will be accepted to lower
69             the minimum required perl.
70              
71             =head1 AUTHOR
72              
73             Ricardo SIGNES 😏 <cpan@semiotic.systems>
74              
75             =head1 COPYRIGHT AND LICENSE
76              
77             This software is copyright (c) 2023 by Ricardo SIGNES.
78              
79             This is free software; you can redistribute it and/or modify it under
80             the same terms as the Perl 5 programming language system itself.
81              
82             =cut