| 1 | package App::Changelord::Command::Print; | ||
| 2 | 3 | our $AUTHORITY = 'cpan:YANICK'; | |
| 3 | 3 | $App::Changelord::Command::Print::VERSION = '0.0.2'; | |
| 4 | 3 | ▶ | use 5.36.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | use CLI::Osprey | ||
| 8 | 3 | ▶ | desc => 'print the changelog', |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | description_pod => <<'END'; | |
| 10 | Render the full changelog. The default is to render the changelog | ||
| 11 | in markdow, but the option C<--json> can be used to have a JSON | ||
| 12 | version instead. | ||
| 13 | |||
| 14 | To generate the changelog without the NEXT release, uses the | ||
| 15 | C<--no-next> option. | ||
| 16 | END | ||
| 17 | |||
| 18 | 3 | with 'App::Changelord::Role::Changelog'; | |
| 19 | 3 | with 'App::Changelord::Role::ChangeTypes'; | |
| 20 | 3 | with 'App::Changelord::Role::Render'; | |
| 21 | |||
| 22 | 3 | option json => ( | |
| 23 | is => 'ro', | ||
| 24 | default => 0, | ||
| 25 | doc => 'output schema as json', | ||
| 26 | ); | ||
| 27 | |||
| 28 | 3 | option next => ( | |
| 29 | is => 'ro', | ||
| 30 | default => 1, | ||
| 31 | negatable => 1, | ||
| 32 | doc => 'include the NEXT release. Defaults to true.', | ||
| 33 | ); | ||
| 34 | |||
| 35 | 0 | ▶ | sub run($self) { |
|
Subroutine
run: not called CC=1 SCAR=0.2
Pod
undocumented
| |||
| 36 | 3 | ▶ | no warnings 'utf8'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 37 | 0 | print $self->as_markdown( $self->next ); | |
| 38 | } | ||
| 39 | |||
| 40 | 3 | 'end of App::Changelog::Command::Print'; | |
| 41 | |||
| 42 | __END__ | ||