]>
Dogcows Code - chaz/git-codeowners/blob - lib/App/Codeowners/Formatter/Table.pm
1 package App
::Codeowners
::Formatter
::Table
;
2 # ABSTRACT: Format codeowners output as a table
6 This is a L<App::Codeowners::Formatter> that formats output using L<Text::Table::Any>.
13 our $VERSION = '9999.999'; # VERSION
15 use parent
'App::Codeowners::Formatter';
17 use App
::Codeowners
::Util
qw(stringify);
18 use Encode
qw(encode);
24 eval { require Text
::Table
::Any
} or die "Missing dependency: Text::Table::Any\n";
26 my $table = Text
::Table
::Any
::table
(
28 rows
=> [$self->columns, map { [map { stringify
($_) } @$_] } @$results],
29 backend
=> $ENV{PERL_TEXT_TABLE
},
31 print { $self->handle } encode
('UTF-8', $table);
This page took 0.038549 seconds and 4 git commands to generate.