App-Critique
view release on metacpan or search on metacpan
lib/App/Critique/Command/process.pm view on Meta::CPAN
elsif ( lc($commit_this_change) eq 'n' ) {
info(HR_LIGHT);
my $what_now = prompt_str(
BOLD('What would you like to do? edit the (f)ile, edit the (c)ommit message or (a)ppend the commit message'),
{ valid => sub { $_[0] =~ m/[fca]{1}/ } }
);
if ( $what_now eq 'c' ) {
info(HR_LIGHT);
$commit_msg = prompt_str( BOLD('Please write a commit message') );
$commit_msg =~ s/\\n/\n/g; # un-escape any newlines ...
goto CHOOSE;
}
elsif ( $what_now eq 'a' ) {
info(HR_LIGHT);
$commit_msg .= "\n\n" . prompt_str( BOLD('Please append the commit message') );
goto CHOOSE;
}
elsif ( $what_now eq 'f' ) {
goto EDIT;
}
( run in 0.332 second using v1.01-cache-2.11-cpan-c21f80fb71c )