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.037;
2             # ABSTRACT: initialize dzil, then exit
3              
4 4     4   3216 use Dist::Zilla::Pragmas;
  4         10  
  4         32  
5              
6 4     4   31 use Dist::Zilla::App -command;
  4         9  
  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.037
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
63             released in the last two to three years. (That is, if the most recently
64             released version is v5.40, then this module should work on both v5.40 and
65             v5.38.)
66              
67             Although it may work on older versions of perl, no guarantee is made that the
68             minimum required version will not be increased. The version may be increased
69             for any reason, and there is no promise that patches will be accepted to
70             lower the minimum required perl.
71              
72             =head1 AUTHOR
73              
74             Ricardo SIGNES 😏 <cpan@semiotic.systems>
75              
76             =head1 COPYRIGHT AND LICENSE
77              
78             This software is copyright (c) 2026 by Ricardo SIGNES.
79              
80             This is free software; you can redistribute it and/or modify it under
81             the same terms as the Perl 5 programming language system itself.
82              
83             =cut