blib/lib/Kubernetes/REST/CLI/Cmd/Delete.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 2 SCAR 13.9
CC
2
Cov
0%
execute
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Kubernetes::REST::CLI::Cmd::Delete;
2 our $VERSION = '1.110';
3 # ABSTRACT: The delete command of kube_client
4 use Moo;
5 use MooX::Cmd;
6  
7  
8 sub execute {
9 my ($self, $args, $chain) = @_;
10 my $root = $chain->[0];
11  
12 my ($kind, $name) = @$args;
13  
14 unless ($kind && $name) {
15 print STDERR "Usage: kube_client delete <Kind> <name>\n";
16 return 1;
17 }
18  
19 my $result = $root->api->delete($kind, $name, namespace => $root->namespace);
20 $root->format_output($result);
21 return 0;
22 }
23  
24  
25 1;
26  
27 __END__