The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IO::Iron::Applications::Command::CommandBase - Internal base class for CLI commands.

VERSION

version 0.12

SYNOPSIS

This package is for internal use of IO::Iron packages.

DESCRIPTION

This class object handles the actual http traffic. Parameters are passed from the calling object (partly from API class) via Connection class object. This class can be mocked and replaced when the client objects are created.

SUBROUTINES/METHODS

description

Describe the command.

abstract

This method returns a short description of the command's purpose. If this method is not overridden, it will return the abstract from the module's Pod. If it can't find the abstract, it will look for a comment starting with "ABSTRACT:" like the ones used by Pod::Weaver::Section::Name.

usage_desc

Describe usage of the command.

opt_spec_base

The options shared by all sub commands.

validate_args_base

Call this in the inheriting classes' validate_args method before any other validation.

validate_args

Validate the arguments (and options/flags) if required.

raise_logging_levels_from_options

Raise logging level according to specified options. Available options: info, debug, trace.

check_for_iron_io_config

Check that config can be accessed.

combine_template

Find template (args[1]) and combine it with data in the referenced structure (args[2]).

AUTHOR

Mikko Koivunalho <mikko.koivunalho AT iki.fi>

BUGS

Please report any bugs or feature requests to bug-io-iron-applications@rt.cpan.org or through the web interface at: http://rt.cpan.org/Public/Dist/Display.html?Name=IO-Iron-Applications

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Mikko Koivunalho.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

The full text of the license can be found in the LICENSE file included with this distribution.