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.029;
2             # ABSTRACT: clean up after build, test, or install
3              
4 4     4   2702 use Dist::Zilla::Pragmas;
  4         10  
  4         28  
5              
6 4     4   52 use Dist::Zilla::App -command;
  4         9  
  4         31  
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.029
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 released
68             in the last two to three years. (That is, if the most recently released
69             version is v5.40, then this module should work on both v5.40 and v5.38.)
70              
71             Although it may work on older versions of perl, no guarantee is made that the
72             minimum required version will not be increased. The version may be increased
73             for any reason, and there is no promise that patches will be accepted to lower
74             the minimum required perl.
75              
76             =head1 OPTIONS
77              
78             =head2 -n, --dry-run
79              
80             Nothing is removed; instead, everything that would be removed will be listed.
81              
82             =head1 AUTHOR
83              
84             Ricardo SIGNES 😏 <cpan@semiotic.systems>
85              
86             =head1 COPYRIGHT AND LICENSE
87              
88             This software is copyright (c) 2022 by Ricardo SIGNES.
89              
90             This is free software; you can redistribute it and/or modify it under
91             the same terms as the Perl 5 programming language system itself.
92              
93             =cut