Skip to content

Commit

Permalink
script/mapping: use the provided --delete flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Aug 1, 2016
1 parent 1ab4491 commit 664fe6c
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 664fe6c

Please sign in to comment.