NAME
HiD::App::Command - Base class for HiD commands
SYNOPSIS
package HiD::App::Command::my_awesome_command;
use Moose;
extends 'HiD::App::Command';
sub _run {
my( $self , $opts , $args ) = @_;
# do whatcha like
}
1;
DESCRIPTION
Base class for implementing subcommands for hid. Provides basic attributes like --config_file
. If you're going to write a sub-command, you want to base it on this class.
ATTRIBUTES
config_file
Path to config file.
Defaults to './_config.yml'
METHODS
reset_hid
Clear out the existing HiD object attribute, generate a fresh one with the stored configuration information, and return it.
VERSION
version 1.91
AUTHOR
John SJ Anderson <genehack@genehack.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by John SJ Anderson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.