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