Ask
view release on metacpan or search on metacpan
lib/Ask/Caroline.pm view on Meta::CPAN
use Path::Tiny 'path';
use Term::ANSIColor 'colored';
use namespace::autoclean;
with 'Ask::API';
has caroline => (
is => 'lazy',
default => sub {
my $self = shift;
Scalar::Util::weaken( my $weak = $self );
'Caroline'->new(
completion_callback => sub {
return unless $weak && $weak->has_completion;
$weak->completion->( @_ );
},
);
},
);
has completion => ( is => 'rw', predicate => 1, clearer => 1 );
( run in 0.240 second using v1.01-cache-2.11-cpan-65fba6d93b7 )