File Coverage

blib/lib/Dist/Zilla/App/Command/clean.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::clean 6.037;
2             # ABSTRACT: clean up after build, test, or install
3              
4 4     4   3053 use Dist::Zilla::Pragmas;
  4         10  
  4         29  
5              
6 4     4   27 use Dist::Zilla::App -command;
  4         9  
  4         32  
7              
8             #pod =head1 SYNOPSIS
9             #pod
10             #pod dzil clean [ --dry-run|-n ]
11             #pod
12             #pod This command removes some files that are created during build, test, and
13             #pod install. It's a very thin layer over the C<L<clean|Dist::Zilla/clean>> method
14             #pod on the Dist::Zilla object. The documentation for that method gives more
15             #pod information about the files that will be removed.
16             #pod
17             #pod =cut
18              
19             sub opt_spec {
20 0     0 1   [ 'dry-run|n' => 'don\'t actually remove anything, just show what would be done' ],
21             }
22              
23             #pod =head1 OPTIONS
24             #pod
25             #pod =head2 -n, --dry-run
26             #pod
27             #pod Nothing is removed; instead, everything that would be removed will be listed.
28             #pod
29             #pod =cut
30              
31 0     0 1   sub abstract { 'clean up after build, test, or install' }
32              
33             sub execute {
34 0     0 1   my ($self, $opt, $arg) = @_;
35              
36 0           $self->zilla->clean($opt->dry_run);
37             }
38              
39             1;
40              
41             __END__
42              
43             =pod
44              
45             =encoding UTF-8
46              
47             =head1 NAME
48              
49             Dist::Zilla::App::Command::clean - clean up after build, test, or install
50              
51             =head1 VERSION
52              
53             version 6.037
54              
55             =head1 SYNOPSIS
56              
57             dzil clean [ --dry-run|-n ]
58              
59             This command removes some files that are created during build, test, and
60             install. It's a very thin layer over the C<L<clean|Dist::Zilla/clean>> method
61             on the Dist::Zilla object. The documentation for that method gives more
62             information about the files that will be removed.
63              
64             =head1 PERL VERSION
65              
66             This module should work on any version of perl still receiving updates from
67             the Perl 5 Porters. This means it should work on any version of perl
68             released in the last two to three years. (That is, if the most recently
69             released version is v5.40, then this module should work on both v5.40 and
70             v5.38.)
71              
72             Although it may work on older versions of perl, no guarantee is made that the
73             minimum required version will not be increased. The version may be increased
74             for any reason, and there is no promise that patches will be accepted to
75             lower the minimum required perl.
76              
77             =head1 OPTIONS
78              
79             =head2 -n, --dry-run
80              
81             Nothing is removed; instead, everything that would be removed will be listed.
82              
83             =head1 AUTHOR
84              
85             Ricardo SIGNES 😏 <cpan@semiotic.systems>
86              
87             =head1 COPYRIGHT AND LICENSE
88              
89             This software is copyright (c) 2026 by Ricardo SIGNES.
90              
91             This is free software; you can redistribute it and/or modify it under
92             the same terms as the Perl 5 programming language system itself.
93              
94             =cut