App::Sandy::CLI::Command - App::Sandy::CLI subclass for commands interface
version 0.20
extends 'App::Sandy::CLI::Command';
This is the base interface to command classes. Command classes need to override validate_args, validate_opts and execute methods
validate_args
validate_opts
execute
This method receives a reference to $args in void context. It is expected that the user override it and validate the arguments
$args
sub validate_args { my ($self, $args) = @_ ... }
This method receives a reference to $opts in void context. It is expected that the user override it and validate the options
$opts
sub validate_opts { my ($self, $opts) = @_; ... }
This method fills the $opts with default values passed by the user. it expects two hash refs
$self->fill_opts($opts, \%default_opts);
This method is called by the application class. It is where all the magic occurs. It receives two hash refs with $opts and $args in void context
sub execute { my ($self, $opts, $args) = @_; ... }
Thiago L. A. Miller <tmiller@mochsl.org.br>
J. Leonel Buzzo <lbuzzo@mochsl.org.br>
Felipe R. C. dos Santos <fsantos@mochsl.org.br>
Helena B. Conceição <hconceicao@mochsl.org.br>
Gabriela Guardia <gguardia@mochsl.org.br>
Fernanda Orpinelli <forpinelli@mochsl.org.br>
Pedro A. F. Galante <pgalante@mochsl.org.br>
This software is Copyright (c) 2018 by Teaching and Research Institute from Sírio-Libanês Hospital.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install App::Sandy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Sandy
CPAN shell
perl -MCPAN -e shell install App::Sandy
For more information on module installation, please visit the detailed CPAN module installation guide.