File Coverage

blib/lib/Acme/CPANModules/COLOR.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Acme::CPANModules::COLOR;
2              
3 1     1   378734 use strict;
  1         3  
  1         272  
4              
5             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6             our $DATE = '2023-08-06'; # DATE
7             our $DIST = 'Acme-CPANModules-COLOR'; # DIST
8             our $VERSION = '0.005'; # VERSION
9              
10             our $LIST = {
11             summary => "List of modules that follow the COLOR & NO_COLOR convention",
12             description => <<'_',
13              
14             The NO_COLOR convention (see https://no-color.org) lets user disable color
15             output of console programs by defining an environment variable called NO_COLOR.
16             The existence of said environment variable, regardless of its value (including
17             empty string, undef, or 0), signals that programs should not use colored output.
18              
19             Another similar convention is the use of the COLOR environment variable. False
20             value (empty string or the value 0) means that programs should disable colored
21             output, while true value (values other than the mentioned false values) means
22             that programs should enable colored output. This convention allows
23             force-enabling colored output instead of just force-disabling it, although
24             programs supporting it need to add a line of code or two to check the value of
25             the environment variable.
26              
27             If you know of other modules that should be listed here, please contact me.
28              
29             _
30             entries => [
31             {module=>'AppBase::Grep'},
32             {module=>'App::abgrep', script=>'abgrep'},
33             {module=>'App::diffdb'},
34             {module=>'App::DiffTarballs'},
35             {module=>'App::diffwc'},
36             {module=>'App::hr'},
37             {module=>'App::riap'},
38             {module=>'App::wordlist'},
39             {module=>'Color::ANSI::Util'},
40             {module=>'Data::Dump::Color'},
41             {module=>'Data::Format::Pretty::JSON'},
42             {module=>'Data::Format::Pretty::Perl'},
43             {module=>'Data::Format::Pretty::YAML'},
44             {module=>'Debug::Print'},
45             {module=>'Log::Any::Adapter::Screen'},
46             {module=>'Log::ger::Output::Screen'},
47             {module=>'Perinci::CmdLine::Classic'},
48             {module=>'Perinci::CmdLine::Lite'},
49             {module=>'Perinci::Result::Format'},
50             {module=>'Perinci::Result::Format::Lite'},
51             {module=>'Progress::Any::Output::TermProgressBar'},
52             {module=>'Term::ANSIColor::Conditional'},
53             {module=>'Term::ANSIColor::Patch::Conditional'},
54             {module=>'Term::App::Roles'},
55             {module=>'Text::ANSITable'},
56             {module=>'Text::DiffU'},
57             ],
58             links => [
59             {url=>'pm:Acme::CPANModules::NO_COLOR'},
60             {url=>'pm:Acme::CPANModules::ColorEnv'},
61             ],
62             };
63              
64             1;
65             # ABSTRACT: List of modules that follow the COLOR & NO_COLOR convention
66              
67             __END__