ine({ getopt => "report=s", default => undef,
help_tip => "specify report output, csv, json, sql, etc",
help_text => "perldoc Mnet::Report::Table for more info",
});
# cr
eport table, will include first of any errors
# use --report cli opt to output data as csv, json, or sql, etc
my $report = Mnet::Report::Table->new({
columns => [
device
Table> module for aggregating report data from scripts,
supporting output in formats such as csv, json, and sql.
=back
Most of the L<Mnet> sub-modules can be used independently of each other,
unless
a row_on_error method to ensure errors always appear,
with various output options including csv, json, sql, and perl L<Data::Dumper>
formats.
=head1 METHODS
Mnet::Report::Table implements the metho
use Mnet::Report::Table;
my $table = Mnet::Report::Table->new({
output => "json:file.json",
columns => [
input => "text",
error => "error",
ndle json output, call with var name arg, refer to sub _output_json
} elsif ($self->{output} =~ /^json(:([a-zA-Z]\w*)(:(.+))?)?$/) {
$self->debug("_output calling _output_json");