blib/lib/Dist/Zilla/App/Command/clean.pm

filter: Statementstmt 63.6% 7 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 100% 3 / 3 totaltotal 63.1% 12 / 19 CC 1 SCAR 4.7
CC
1
Cov
64%
opt_spec
2.0
abstract
2.0
execute
2.0
CRAP 1.6
« blib/lib/Dist/Zilla/File/InMemory.pm ↑ Summary blib/lib/Dist/Zilla/App/Command/nop.pm »
1 package Dist::Zilla::App::Command::clean 6.040;
2 # ABSTRACT: clean up after build, test, or install
3  
4 4 ▶use Dist::Zilla::Pragmas;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use Dist::Zilla::App -command;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 0 ▶sub opt_spec {
Subroutine opt_spec: not called CC=1 SCAR=6.9
Pod documented
20 0 [ '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 ▶sub abstract { 'clean up after build, test, or install' }
Subroutine abstract: not called CC=1 SCAR=6.9
Pod documented
32  
33 0 ▶sub execute {
Subroutine execute: not called CC=1 SCAR=6.9
Pod documented
34 0 my ($self, $opt, $arg) = @_;
35  
36 0 $self->zilla->clean($opt->dry_run);
37 }
38  
39 4 1;
40  
41 __END__
« blib/lib/Dist/Zilla/File/InMemory.pm ↑ Summary blib/lib/Dist/Zilla/App/Command/nop.pm »