App::Spec::Role::Command - commands and subcommands both use this role
Calls load_data, build, load_plugins, init_plugins
This builds a tree of objects
my $self = App::Spec->build(%$hashref); my $self = App::Spec::Subcommand->build(%$hashref);
my $spec = App::Spec->load_data($file);
Takes a filename as a string, a filehandle, a ref to a YAML string or a hashref.
Returns ('Meta', 'Help')
Returns 1 if there are any subcommands defined.
Initialize plugins
Loads the specified plugin modules.
my $p = $cmd->plugins_by_type->{Subcommand};
Specifies the class which implements the app.
Accessors for specification items
To install App::Spec, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Spec
CPAN shell
perl -MCPAN -e shell install App::Spec
For more information on module installation, please visit the detailed CPAN module installation guide.