App-Prove-Dist
view release on metacpan or search on metacpan
lib/App/Prove/Dist.pm view on Meta::CPAN
my $out = Capture::Tiny::capture_merged {
$rc = system($command);
};
die "FAIL '$command':\n$out\n" unless $rc == 0;
return $out;
}
# Hack to suppress extra options I don't care about.
around usage=>sub{$a=$_[1]->{usage}{options};@$a=grep{$_->{name}ne'help'}@$a;$_[0]->($_[1])};
sub validate_args {
my ($self, $opts, $args) = @_;
$self->_opts($opts);
$self->_args($args);
}
1;
=head1 SYNOPSIS
prove-dist # make dist; unzip dist;
( run in 0.471 second using v1.01-cache-2.11-cpan-4d50c553e7e )