Skip to content

Commit

Permalink
Merge pull request #508 from metacpan/mickey/mapping_use_delete_flag
Browse files Browse the repository at this point in the history
script/mapping: use the provided --delete flag
  • Loading branch information
oalders committed Aug 4, 2016
2 parents 1ab4491 + 664fe6c commit 0f04a62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/MetaCPAN/Script/Mapping.pm
Expand Up @@ -21,6 +21,13 @@ has delete => (

sub run {
my $self = shift;
$self->delete_mapping;
}

sub delete_mapping {
my $self = shift;
return unless $self->delete;

if (is_interactive) {
print colored(
['bold red'],
Expand Down

0 comments on commit 0f04a62

Please sign in to comment.