Kubectl-CLIWrapper
view release on metacpan or search on metacpan
lib/Kubectl/CLIWrapper/Result.pm view on Meta::CPAN
package Kubectl::CLIWrapper::Result {
use Moo;
use Types::Standard qw/Int Str HashRef Bool/;
has rc => (is => 'ro', isa => Int, required => 1);
has output => (is => 'ro', isa => Str);
has json => (is => 'ro', isa => HashRef);
has success => (is => 'ro', isa => Bool, lazy => 1, default => sub {
my $self = shift;
$self->rc == 0;
});
}
1;
( run in 0.643 second using v1.01-cache-2.11-cpan-5f2e87ce722 )