make main changelord an alias for 'print'

releases
Yanick Champoux 2022-07-25 11:27:16 -04:00
parent ae29ae0ebf
commit dcc2f7192c
2 changed files with 12 additions and 8 deletions

View File

@ -7,11 +7,9 @@ releases:
changes: changes:
- Initial release - Initial release
change_types: change_types:
- feat: - level: minor
level: minor title: Features
title: Features keywords: [ feat ]
keywords: [] - level: patch
- fix: title: Bug fixes
level: patch keywords: [ fix ]
title: Bug fixes
keywords: []

View File

@ -15,6 +15,12 @@ use List::AllUtils qw/ pairmap partition_by /;
use App::Changelord::Role::ChangeTypes; use App::Changelord::Role::ChangeTypes;
sub run($self) {
App::Changelord::Command::Print->new(
parent_command => $self,
)->run;
}
subcommand $_ => 'App::Changelord::Command::' . ucfirst $_ =~ s/-(.)/uc $1/er subcommand $_ => 'App::Changelord::Command::' . ucfirst $_ =~ s/-(.)/uc $1/er
for qw/ schema validate version bump init add git-gather print /; for qw/ schema validate version bump init add git-gather print /;