App-Multigit

 view release on metacpan or  search on metacpan

script/mg-each  view on Meta::CPAN

#!perl
use strict;
use warnings;
use 5.014;

use Getopt::Long qw(:config gnu_getopt pass_through);
use App::Multigit qw/mg_each base_branch/;
use App::Multigit::Script;
use Future;
use curry;

my %result = mg_each(
    sub {
        my $repo = shift;

        $repo->run(\@ARGV)
            ->finally($repo->curry::report)
    })
->get;

for (sort keys %result) {
    say $_ unless $App::Multigit::BEHAVIOUR{output_only};
    say $result{$_};
}

=head1 SYNOPSIS
    
    mg each [command]

Runs `command` in each repository and reports the results.

Use options to C<mg> itself to control the output.



( run in 0.615 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )