| 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__ | ||