App-Dochazka-CLI
view release on metacpan or search on metacpan
bin/dochazka-cli view on Meta::CPAN
250251252253254255256257258259260261262263264265266267268269270my
$readline
=
$interactive
?
sub
{
$term
->
readline
( get_prompt() ) }
:
sub
{
my
$line
= <STDIN>;
return
unless
defined
(
$line
);
get_prompt() .
$line
;
return
$line
;
};
binmode
STDOUT,
":utf8"
;
my
$cmd
;
COMMAND:
while
(
defined
(
$cmd
=
$readline
->() ) ) {
my
$rv
= process_command(
$cmd
);
# The return value SHOULD be a status object, but tolerate the eventuality
# that it might be just a plain string
if
(
ref
(
$rv
) eq
'App::CELL::Status'
) {
( run in 0.392 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )