| 1 | package TaskPipe::PodReader::Settings; | ||
| 2 | |||
| 3 | 42 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 42 | with 'MooseX::ConfigCascade'; | |
| 5 | |||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | TaskPipe::PodReader::Settings - Settings for L<TaskPipe::PodReader> | ||
| 10 | |||
| 11 | =head1 METHODS | ||
| 12 | |||
| 13 | =over | ||
| 14 | |||
| 15 | =item pod_format | ||
| 16 | |||
| 17 | Command line tool POD formatting options | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | has pod_format => (is => 'ro', isa => 'HashRef', default => sub{{ | ||
| 22 | 5550 | ▶ | head1 => { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 23 | display => 'block', | ||
| 24 | stacking => 'revert', | ||
| 25 | indent => 0, | ||
| 26 | after_indent => 2, | ||
| 27 | color => 'on_blue', | ||
| 28 | bottom_spacing => 2 | ||
| 29 | }, | ||
| 30 | |||
| 31 | head2 => { | ||
| 32 | display => 'block', | ||
| 33 | stacking => 'revert', | ||
| 34 | indent => 0, | ||
| 35 | after_indent => 2, | ||
| 36 | color => 'blue', | ||
| 37 | bottom_spacing => 2 | ||
| 38 | }, | ||
| 39 | |||
| 40 | head3 => { | ||
| 41 | display => 'block', | ||
| 42 | stacking => 'revert', | ||
| 43 | indent => 0, | ||
| 44 | after_indent => 2, | ||
| 45 | color => 'magenta', | ||
| 46 | bottom_spacing => 2 | ||
| 47 | }, | ||
| 48 | |||
| 49 | head4 => { | ||
| 50 | display => 'block', | ||
| 51 | stacking => 'revert', | ||
| 52 | indent => 0, | ||
| 53 | after_indent => 2, | ||
| 54 | color => 'bright_magenta', | ||
| 55 | bottom_spacing => 2 | ||
| 56 | }, | ||
| 57 | |||
| 58 | 'over-text' => { | ||
| 59 | display => 'block', | ||
| 60 | stacking => 'nest', | ||
| 61 | indent => 2 | ||
| 62 | }, | ||
| 63 | |||
| 64 | 'over-number' => { | ||
| 65 | display => 'block', | ||
| 66 | stacking => 'nest', | ||
| 67 | indent => 2 | ||
| 68 | }, | ||
| 69 | |||
| 70 | 'over-bullet' => { | ||
| 71 | display => 'block', | ||
| 72 | stacking => 'nest', | ||
| 73 | indent => 2, | ||
| 74 | bottom_spacing => 1 | ||
| 75 | }, | ||
| 76 | |||
| 77 | 'item-text' => { | ||
| 78 | display => 'block', | ||
| 79 | stacking => 'spot', | ||
| 80 | color => 'yellow', | ||
| 81 | indent => 0, | ||
| 82 | after_indent => 2, | ||
| 83 | bottom_spacing => 2 | ||
| 84 | }, | ||
| 85 | |||
| 86 | 'item-number' => { | ||
| 87 | display => 'block', | ||
| 88 | stacking => 'nest', | ||
| 89 | color => 'yellow', | ||
| 90 | prepend => { | ||
| 91 | text => '@number. ', | ||
| 92 | color => 'red' | ||
| 93 | }, | ||
| 94 | bottom_spacing => 2 | ||
| 95 | }, | ||
| 96 | |||
| 97 | 'item-bullet' => { | ||
| 98 | display => 'block', | ||
| 99 | stacking => 'nest', | ||
| 100 | color => 'yellow', | ||
| 101 | prepend => { | ||
| 102 | text => '* ', | ||
| 103 | color => 'red' | ||
| 104 | }, | ||
| 105 | bottom_spacing => 1 | ||
| 106 | }, | ||
| 107 | |||
| 108 | 'B' => { | ||
| 109 | display => 'inline', | ||
| 110 | color => 'bright_yellow' | ||
| 111 | }, | ||
| 112 | |||
| 113 | 'C' => { | ||
| 114 | display => 'inline', | ||
| 115 | color => 'cyan' | ||
| 116 | }, | ||
| 117 | |||
| 118 | 'I' => { | ||
| 119 | display => 'inline', | ||
| 120 | color => 'bright_white' | ||
| 121 | }, | ||
| 122 | |||
| 123 | 'L' => { | ||
| 124 | display => 'inline', | ||
| 125 | color => 'bright_green' | ||
| 126 | }, | ||
| 127 | |||
| 128 | 'E' => { | ||
| 129 | display => 'inline', | ||
| 130 | color => 'white' | ||
| 131 | }, | ||
| 132 | |||
| 133 | 'F' => { | ||
| 134 | display => 'inline', | ||
| 135 | color => 'bright_white' | ||
| 136 | }, | ||
| 137 | |||
| 138 | 'S' => { | ||
| 139 | display => 'inline', | ||
| 140 | color => 'cyan', | ||
| 141 | wrap => 'verbatim' | ||
| 142 | }, | ||
| 143 | |||
| 144 | 'Para' => { | ||
| 145 | display => 'block', | ||
| 146 | stacking => 'nest', | ||
| 147 | color => 'white', | ||
| 148 | bottom_spacing => 2, | ||
| 149 | }, | ||
| 150 | |||
| 151 | 'Verbatim' => { | ||
| 152 | display => 'block', | ||
| 153 | stacking => 'nest', | ||
| 154 | color => 'cyan', | ||
| 155 | bottom_spacing => 2, | ||
| 156 | wrap => 'verbatim' | ||
| 157 | }, | ||
| 158 | |||
| 159 | 'Document' => { | ||
| 160 | display => 'block', | ||
| 161 | stacking => 'nest', | ||
| 162 | indent => 2 | ||
| 163 | } | ||
| 164 | 42 | }}); | |
| 165 | |||
| 166 | =item pod_format_mono | ||
| 167 | |||
| 168 | Command line tool monochrome pod formatting options - for file output | ||
| 169 | |||
| 170 | =back | ||
| 171 | |||
| 172 | =cut | ||
| 173 | |||
| 174 | has pod_format_mono => (is => 'ro', isa => 'HashRef', default => sub{{ | ||
| 175 | 5550 | ▶ | head1 => { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 176 | display => 'block', | ||
| 177 | stacking => 'revert', | ||
| 178 | indent => 0, | ||
| 179 | after_indent => 2, | ||
| 180 | color => undef, | ||
| 181 | bottom_spacing => 2 | ||
| 182 | }, | ||
| 183 | |||
| 184 | head2 => { | ||
| 185 | display => 'block', | ||
| 186 | stacking => 'revert', | ||
| 187 | indent => 0, | ||
| 188 | after_indent => 2, | ||
| 189 | color => undef, | ||
| 190 | bottom_spacing => 2 | ||
| 191 | }, | ||
| 192 | |||
| 193 | head3 => { | ||
| 194 | display => 'block', | ||
| 195 | stacking => 'revert', | ||
| 196 | indent => 0, | ||
| 197 | after_indent => 2, | ||
| 198 | color => undef, | ||
| 199 | bottom_spacing => 2 | ||
| 200 | }, | ||
| 201 | |||
| 202 | head4 => { | ||
| 203 | display => 'block', | ||
| 204 | stacking => 'revert', | ||
| 205 | indent => 0, | ||
| 206 | after_indent => 2, | ||
| 207 | color => undef, | ||
| 208 | bottom_spacing => 2 | ||
| 209 | }, | ||
| 210 | |||
| 211 | 'over-text' => { | ||
| 212 | display => 'block', | ||
| 213 | stacking => 'nest', | ||
| 214 | indent => 2 | ||
| 215 | }, | ||
| 216 | |||
| 217 | 'over-number' => { | ||
| 218 | display => 'block', | ||
| 219 | stacking => 'nest', | ||
| 220 | indent => 2 | ||
| 221 | }, | ||
| 222 | |||
| 223 | 'over-bullet' => { | ||
| 224 | display => 'block', | ||
| 225 | stacking => 'nest', | ||
| 226 | indent => 2, | ||
| 227 | bottom_spacing => 1 | ||
| 228 | }, | ||
| 229 | |||
| 230 | 'item-text' => { | ||
| 231 | display => 'block', | ||
| 232 | stacking => 'nest', | ||
| 233 | color => undef, | ||
| 234 | indent => 0, | ||
| 235 | after_indent => 2, | ||
| 236 | bottom_spacing => 2 | ||
| 237 | }, | ||
| 238 | |||
| 239 | 'item-number' => { | ||
| 240 | display => 'block', | ||
| 241 | stacking => 'nest', | ||
| 242 | color => undef, | ||
| 243 | prepend => { | ||
| 244 | text => '@number. ', | ||
| 245 | color => 'red' | ||
| 246 | }, | ||
| 247 | bottom_spacing => 2 | ||
| 248 | }, | ||
| 249 | |||
| 250 | 'item-bullet' => { | ||
| 251 | display => 'block', | ||
| 252 | stacking => 'nest', | ||
| 253 | color => undef, | ||
| 254 | prepend => { | ||
| 255 | text => '* ', | ||
| 256 | color => undef | ||
| 257 | }, | ||
| 258 | bottom_spacing => 1 | ||
| 259 | }, | ||
| 260 | |||
| 261 | 'B' => { | ||
| 262 | display => 'inline', | ||
| 263 | color => undef | ||
| 264 | }, | ||
| 265 | |||
| 266 | 'C' => { | ||
| 267 | display => 'inline', | ||
| 268 | color => undef | ||
| 269 | }, | ||
| 270 | |||
| 271 | 'I' => { | ||
| 272 | display => 'inline', | ||
| 273 | color => undef | ||
| 274 | }, | ||
| 275 | |||
| 276 | 'L' => { | ||
| 277 | display => 'inline', | ||
| 278 | color => undef | ||
| 279 | }, | ||
| 280 | |||
| 281 | 'E' => { | ||
| 282 | display => 'inline', | ||
| 283 | color => undef | ||
| 284 | }, | ||
| 285 | |||
| 286 | 'F' => { | ||
| 287 | display => 'inline', | ||
| 288 | color => undef | ||
| 289 | }, | ||
| 290 | |||
| 291 | 'S' => { | ||
| 292 | display => 'inline', | ||
| 293 | color => undef, | ||
| 294 | wrap => 'verbatim' | ||
| 295 | }, | ||
| 296 | |||
| 297 | 'Para' => { | ||
| 298 | display => 'block', | ||
| 299 | stacking => 'nest', | ||
| 300 | color => undef, | ||
| 301 | bottom_spacing => 2, | ||
| 302 | }, | ||
| 303 | |||
| 304 | 'Verbatim' => { | ||
| 305 | display => 'block', | ||
| 306 | stacking => 'nest', | ||
| 307 | color => undef, | ||
| 308 | bottom_spacing => 2, | ||
| 309 | wrap => 'verbatim' | ||
| 310 | }, | ||
| 311 | |||
| 312 | 'Document' => { | ||
| 313 | display => 'block', | ||
| 314 | stacking => 'nest', | ||
| 315 | indent => 2 | ||
| 316 | } | ||
| 317 | 42 | }}); | |
| 318 | |||
| 319 | =head1 AUTHOR | ||
| 320 | |||
| 321 | Tom Gracey <tomgracey@gmail.com> | ||
| 322 | |||
| 323 | =head1 COPYRIGHT AND LICENSE | ||
| 324 | |||
| 325 | Copyright (c) Tom Gracey 2018 | ||
| 326 | |||
| 327 | TaskPipe is free software, licensed under | ||
| 328 | |||
| 329 | The GNU Public License Version 3 | ||
| 330 | |||
| 331 | =cut | ||
| 332 | |||
| 333 | 42 | __PACKAGE__->meta->make_immutable; | |
| 334 | 42 | 1; | |