]>
Dogcows Code - chaz/git-codeowners/blob - lib/App/Codeowners/Formatter/Table.pm
cba514782f81f7cbb5014574ce907ab1916ac214
1 package App
::Codeowners
::Formatter
::Table
;
2 # ABSTRACT: Format codeowners output as a table
8 our $VERSION = '0.48'; # VERSION
10 use parent
'App::Codeowners::Formatter';
12 use App
::Codeowners
::Util
qw(stringify);
13 use Encode
qw(encode);
19 eval { require Text
::Table
::Any
} or die "Missing dependency: Text::Table::Any\n";
21 my $table = Text
::Table
::Any
::table
(
23 rows
=> [$self->columns, map { [map { stringify
($_) } @$_] } @$results],
24 backend
=> $ENV{PERL_TEXT_TABLE
},
26 print { $self->handle } encode
('UTF-8', $table);
39 App::Codeowners::Formatter::Table - Format codeowners output as a table
47 This is a L<App::Codeowners::Formatter> that formats output using L<Text::Table::Any>.
51 Please report any bugs or feature requests on the bugtracker website
52 L<https://github.com/chazmcgarvey/git-codeowners/issues>
54 When submitting a bug or request, please include a test-file or a
55 patch to an existing test-file that illustrates the bug or desired
60 Charles McGarvey <chazmcgarvey@brokenzipper.com>
62 =head1 COPYRIGHT AND LICENSE
64 This software is copyright (c) 2019 by Charles McGarvey.
66 This is free software; you can redistribute it and/or modify it under
67 the same terms as the Perl 5 programming language system itself.
This page took 0.035337 seconds and 4 git commands to generate.