NAME
Ixchel::Actions::dump_config - Prints out the config.
VERSION
Version 0.2.0
CLI SYNOPSIS
ixchel -a <dump_config> [-o <format>] [-s <section>]
CODE SYNOPSIS
my $results=$ixchel->action(action=>'apt_proxy', opts=>{w=>1, np=>1});
if ($results->{ok}) {
print $results->{raw};
}else{
die('Action errored... '.joined("\n", @{$results->{errors}}));
}
Switches
-o <format>
Format to print it in.
Available: json, yaml, toml, dumper
Default: yaml
-s <section>
A JSON style path used for fetching a sub section of the config via JSON::Path.
Default: undef
RESULT HASH REF
.errors :: A array of errors encountered.
.status_text :: A string description of what was done and the results.
.ok :: Set to zero if any of the above errored.
.raw :: The config in the specified format.
.config :: The config hash.