| 1 | package App::GitGot::Outputter::light; | ||
| 2 | 1 | our $AUTHORITY = 'cpan:GENEHACK'; | |
| 3 | 1 | $App::GitGot::Outputter::light::VERSION = '1.339'; | |
| 4 | # ABSTRACT: Color scheme appropriate for dark terminal backgrounds | ||
| 5 | 1 | ▶ | use 5.014; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use Types::Standard -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use App::GitGot::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | extends 'App::GitGot::Outputter'; | |
| 13 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 1 | has color_error => ( | |
| 16 | is => 'ro' , | ||
| 17 | isa => Str , | ||
| 18 | default => 'bold red' | ||
| 19 | ); | ||
| 20 | |||
| 21 | # Color choices by drdrang based on a conversation that started with | ||
| 22 | # <http://www.leancrew.com/all-this/2010/12/batch-comparison-of-git-repositories/> | ||
| 23 | |||
| 24 | 1 | has color_major_change => ( | |
| 25 | is => 'ro' , | ||
| 26 | isa => Str , | ||
| 27 | default => 'blue' | ||
| 28 | ); | ||
| 29 | |||
| 30 | 1 | has color_minor_change => ( | |
| 31 | is => 'ro' , | ||
| 32 | isa => Str , | ||
| 33 | default => 'uncolored' | ||
| 34 | ); | ||
| 35 | |||
| 36 | 1 | has color_warning => ( | |
| 37 | is => 'ro' , | ||
| 38 | isa => Str , | ||
| 39 | default => 'bold magenta' | ||
| 40 | ); | ||
| 41 | |||
| 42 | |||
| 43 | 1 | 1; | |
| 44 | |||
| 45 | __END__ | ||