#!perl

use 5.010001;
use strict;
use warnings;

use Text::ANSITable;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2021-08-27'; # DATE
our $DIST = 'Text-ANSITable'; # DIST
our $VERSION = '0.607'; # VERSION

binmode(STDOUT, ":encoding(utf8)");

my $t = Text::ANSITable->new;

my $all_sets = $t->list_style_sets(1);

$t->columns(['Name', 'Summary', 'Arguments']);
for (sort keys %$all_sets) {
    my $set = $all_sets->{$_};
    $t->add_row([
        $set->{name},
        $set->{summary},
        join(", ", @{ $set->{args} // []}),
    ]);
}

print $t->draw;

# ABSTRACT: List available style sets for Text::ANSITable
# PODNAME: ansitable-list-style-sets

__END__

=pod

=encoding UTF-8

=head1 NAME

ansitable-list-style-sets - List available style sets for Text::ANSITable

=head1 VERSION

This document describes version 0.607 of ansitable-list-style-sets (from Perl distribution Text-ANSITable), released on 2021-08-27.

=head1 SYNOPSIS

 % ansitable-list-style-sets

Sample output:

 .--------------------------------------------------------------------------------------------------.
 | Name                             Summary                          Arguments                      |
 |                                                                                                  |
 | Text::ANSITable::StyleSet::Alt   Set different foreground         even_bgcolor, even_fgcolor,    |
 | Row                              and/or background color for      odd_bgcolor, odd_fgcolor       |
 |                                  odd/even rows                                                   |
 | Text::ANSITable::StyleSet::Cal   Set foreground and/or            holiday_bgcolor,               |
 | endar::Indonesia::Holiday::Hol   background color for different   holiday_fgcolor,               |
 | idayType                         holiday types                    joint_leave_bgcolor,           |
 |                                                                   joint_leave_fgcolor            |
 `--------------------------------------------------------------------------------------------------'

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/Text-ANSITable>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-Text-ANSITable>.

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 CONTRIBUTING


To contribute, you can send patches by email/via RT, or send pull requests on
GitHub.

Most of the time, you don't need to build the distribution yourself. You can
simply modify the code, then test via:

 % prove -l

If you want to build the distribution (e.g. to try to install it locally on your
system), you can install L<Dist::Zilla>,
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required
beyond that are considered a bug and can be reported to me.

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2021, 2020, 2018, 2017, 2016, 2015, 2014, 2013 by perlancar <perlancar@cpan.org>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Text-ANSITable>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=cut
