NAME
Ereshkigal::App::Command - Base class for the ereshkigal subcommands.
VERSION
Version 0.0.1
DESCRIPTION
Base class for the Ereshkigal::App::Command modules, providing the shared talk-to-the-manager plumbing.
Commands going through run_command exit with...
0 - clean success
1 - transport or server error, printed to STDERR
2 - the command completed, but the result carries per-kur,
per-IP, or per-CIDR failures
METHODS
client
Returns a new Ereshkigal::Client for the socket named by the global --socket option.
my $client = $self->client;
run_command
Sends the command to the manager and prints the result to STDOUT as pretty JSON, exiting per the codes above.
$self->run_command( $command, $command_args );