line |
true |
false |
branch |
34
|
0 |
0 |
if ($self->options->{'format'}) |
35
|
0 |
0 |
unless (grep {$self->options->{'format'} eq $_;} @output_formats) |
44
|
0 |
0 |
if $self->options->{$_} |
52
|
0 |
0 |
if $api |
53
|
0 |
0 |
if $method |
55
|
0 |
0 |
unless $api and $method |
59
|
0 |
0 |
if ($arg =~ /^([^=]+)=(.*)$/) |
71
|
0 |
0 |
unless $results = $sc->$api->$method(%{$params;}) |
73
|
0 |
0 |
if (ref $results eq 'ARRAY' or ref $results eq 'HASH') |
75
|
0 |
0 |
if ($self->options->{'format'} eq 'json') |
95
|
0 |
0 |
if ($self->options->{'format'} eq 'dumper') |
100
|
0 |
0 |
if ($self->options->{'format'} eq 'yaml') |
102
|
0 |
0 |
if (eval {
do {
require YAML::XS
}
}) |
106
|
0 |
0 |
if (eval {
do {
require YAML
}
}) |
115
|
0 |
0 |
if ($self->options->{'format'} eq 'tsv' or $self->options->{'format'} eq 'csv' or $self->options->{'format'} eq 'table') |
123
|
0 |
0 |
if (ref $results ne 'ARRAY') |
129
|
0 |
0 |
unless (@fields) |
137
|
0 |
0 |
if (ref $row->{$_} eq 'HASH') { } |
142
|
0 |
0 |
if ($self->options->{'format'} ne 'table') |
143
|
0 |
0 |
if $value =~ /\n/ or $value =~ /\,/ |
154
|
0 |
0 |
if (@rows) |
190
|
0 |
0 |
if $headers |
192
|
0 |
0 |
if ($output_format eq 'table') { } |
198
|
0 |
0 |
if (defined $args{'widths'}[$idx] and $args{'widths'}[$idx] > 0) |
204
|
0 |
0 |
if $col and length $col > ($widths->[$idx] || 0) |
217
|
0 |
0 |
if $output_format eq 'csv' |
218
|
0 |
0 |
if $output_format eq 'tsv' |
225
|
0 |
0 |
if ($headers) |
232
|
0 |
0 |
if ($header_separator) |
239
|
0 |
0 |
unless $_ |