IO::Iron::Applications::Command::CommandBase - Internal base class for CLI commands.
version 0.12
This package is for internal use of IO::Iron packages.
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.
Describe the command.
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.
Describe usage of the command.
The options shared by all sub commands.
Call this in the inheriting classes' validate_args method before any other validation.
Validate the arguments (and options/flags) if required.
Raise logging level according to specified options. Available options: info, debug, trace.
Check that config can be accessed.
Find template (args[1]) and combine it with data in the referenced structure (args[2]).
Mikko Koivunalho <mikko.koivunalho AT iki.fi>
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
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.
To install IO::Iron::Applications, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Iron::Applications
CPAN shell
perl -MCPAN -e shell install IO::Iron::Applications
For more information on module installation, please visit the detailed CPAN module installation guide.